From ac2c9c3a9b0964f4f212663de4fc0362c02e1d13 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 30 Sep 2024 19:27:40 +0200 Subject: [PATCH] Improved opportunistic delivery performance --- LXMF/Handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LXMF/Handlers.py b/LXMF/Handlers.py index eb10a76..5ce5571 100644 --- a/LXMF/Handlers.py +++ b/LXMF/Handlers.py @@ -15,7 +15,7 @@ class LXMFDeliveryAnnounceHandler: def received_announce(self, destination_hash, announced_identity, app_data): for lxmessage in self.lxmrouter.pending_outbound: if destination_hash == lxmessage.destination_hash: - if lxmessage.method == LXMessage.DIRECT: + if lxmessage.method == LXMessage.DIRECT or lxmessage.method == LXMessage.OPPORTUNISTIC: lxmessage.next_delivery_attempt = time.time() while self.lxmrouter.processing_outbound: