From 43a077b291cf3d6a8908be3d3782cb2c95223e21 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 25 Sep 2026 15:19:43 +0200 Subject: [PATCH] Ensure sequential processing in process_outbound --- LXMF/LXMRouter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LXMF/LXMRouter.py b/LXMF/LXMRouter.py index 5b81783..1c4a0ae 100644 --- a/LXMF/LXMRouter.py +++ b/LXMF/LXMRouter.py @@ -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)