mirror of
https://github.com/markqvist/LXMF
synced 2026-11-22 23:10:36 +00:00
Retain on propagation success
This commit is contained in:
1 file changed
+2
@@ -3078,6 +3078,8 @@ class LXMRouter:
|
||||
|
||||
elif lxmessage.method == LXMessage.PROPAGATED and lxmessage.state == LXMessage.SENT:
|
||||
RNS.log("Propagation has occurred for "+str(lxmessage)+", removing from outbound queue", RNS.LOG_DEBUG)
|
||||
try: RNS.Reticulum.get_instance()._retain_destination_data(lxmessage.destination_hash)
|
||||
except Exception as e: RNS.log(f"An error occurred while marking {RNS.prettyhexrep(lxmessage.destination_hash)} for announce data retainment: {e}", RNS.LOG_ERROR)
|
||||
self.pending_outbound.remove(lxmessage)
|
||||
|
||||
elif lxmessage.state == LXMessage.CANCELLED:
|
||||
|
||||
Reference in new issue
Block a user