Skip to content

Commit

Permalink
Improved opportunistic delivery performance
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Sep 30, 2024
1 parent 05f144a commit ac2c9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LXMF/Handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, lxmrouter):
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:
Expand Down

0 comments on commit ac2c9c3

Please sign in to comment.