mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-02 12:57:09 -05:00
Periodically clean known destinations data based on local relevance
This commit is contained in:
parent
3d1c508868
commit
b408699e65
3 changed files with 80 additions and 29 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue