Added local destinations lookup map

This commit is contained in:
Mark Qvist
2026-04-17 11:39:14 +02:00
parent c6778e4e29
commit 8093c3cd2c
4 changed files with 107 additions and 49 deletions
+3 -1
View File
@@ -411,7 +411,9 @@ class Destination:
else:
if packet.packet_type == RNS.Packet.DATA:
if self.callbacks.packet != None:
try: self.callbacks.packet(plaintext, packet)
try:
def job(): self.callbacks.packet(plaintext, packet)
threading.Thread(target=job, daemon=True).start()
except Exception as e:
RNS.log("Error while executing receive callback from "+str(self)+". The contained exception was: "+str(e), RNS.LOG_ERROR)