Ensure sequential processing in process_outbound

This commit is contained in:
Mark Qvist committed 2026-09-25 15:19:43 +02:00
1 parent 170e71d5a9
commit 43a077b291
1 file changed
+1 -1
+1 -1
View File
@@ -2747,7 +2747,7 @@ class LXMRouter:
def process_outbound(self, sender = None):
if self.outbound_processing_lock.locked(): return
with self.outbound_processing_lock:
for lxmessage in self.pending_outbound:
for lxmessage in self.pending_outbound.copy():
if lxmessage.state == LXMessage.DELIVERED:
RNS.log("Delivery has occurred for "+str(lxmessage)+", removing from outbound queue", RNS.LOG_DEBUG)
self.pending_outbound.remove(lxmessage)