mirror of
https://github.com/markqvist/LXMF
synced 2026-11-22 23:10:36 +00:00
Ensure sequential processing in process_outbound
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user