mirror of
https://github.com/markqvist/LXMF.git
synced 2025-08-22 05:29:29 -04:00
Improved opportunistic delivery performance
This commit is contained in:
parent
05f144ae50
commit
ac2c9c3a9b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class LXMFDeliveryAnnounceHandler:
|
||||||
def received_announce(self, destination_hash, announced_identity, app_data):
|
def received_announce(self, destination_hash, announced_identity, app_data):
|
||||||
for lxmessage in self.lxmrouter.pending_outbound:
|
for lxmessage in self.lxmrouter.pending_outbound:
|
||||||
if destination_hash == lxmessage.destination_hash:
|
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()
|
lxmessage.next_delivery_attempt = time.time()
|
||||||
|
|
||||||
while self.lxmrouter.processing_outbound:
|
while self.lxmrouter.processing_outbound:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue