Retain on propagation success

This commit is contained in:
Mark Qvist committed 2026-11-05 12:46:06 +01:00
1 parent 2b09146a15
commit 2059784a55
1 file changed
+2
+2
View File
@@ -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: