mirror of
https://github.com/markqvist/LXMF.git
synced 2025-06-06 21:49:06 -04:00
Updated sync request handling
This commit is contained in:
parent
92b4aaaaee
commit
937ae70a85
1 changed files with 35 additions and 32 deletions
|
@ -908,6 +908,7 @@ class LXMRouter:
|
||||||
self.wants_download_on_path_available_to = None
|
self.wants_download_on_path_available_to = None
|
||||||
|
|
||||||
def request_messages_from_propagation_node(self, identity, max_messages = PR_ALL_MESSAGES):
|
def request_messages_from_propagation_node(self, identity, max_messages = PR_ALL_MESSAGES):
|
||||||
|
if self.outbound_propagation_node != None:
|
||||||
self.propagation_transfer_progress = 0.0
|
self.propagation_transfer_progress = 0.0
|
||||||
if self.outbound_propagation_link != None and self.outbound_propagation_link.status == RNS.Link.ACTIVE:
|
if self.outbound_propagation_link != None and self.outbound_propagation_link.status == RNS.Link.ACTIVE:
|
||||||
self.propagation_transfer_state = LXMRouter.PR_LINK_ESTABLISHED
|
self.propagation_transfer_state = LXMRouter.PR_LINK_ESTABLISHED
|
||||||
|
@ -941,6 +942,8 @@ class LXMRouter:
|
||||||
else:
|
else:
|
||||||
# TODO: Remove at some point
|
# TODO: Remove at some point
|
||||||
RNS.log("Waiting for propagation node link to become active", RNS.LOG_EXTREME)
|
RNS.log("Waiting for propagation node link to become active", RNS.LOG_EXTREME)
|
||||||
|
else:
|
||||||
|
RNS.log("Cannot request LXMF propagation node sync, no default propagation node configured", RNS.LOG_WARNING)
|
||||||
|
|
||||||
|
|
||||||
def request_messages_path_job(self):
|
def request_messages_path_job(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue