Periodically clean known destinations data based on local relevance

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