mirror of
https://github.com/markqvist/LXMF.git
synced 2024-12-24 22:59:28 -05:00
Improved opportunistic delivery performance
This commit is contained in:
parent
05f144ae50
commit
ac2c9c3a9b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user