mirror of
https://github.com/markqvist/LXMF.git
synced 2025-07-28 09:34:20 -04:00
Don't reset propagation node address and links if already set to the same destination
This commit is contained in:
parent
19d8909b10
commit
0178fb0d4f
1 changed files with 6 additions and 5 deletions
|
@ -284,6 +284,7 @@ class LXMRouter:
|
||||||
if len(destination_hash) != RNS.Identity.TRUNCATED_HASHLENGTH//8 or type(destination_hash) != bytes:
|
if len(destination_hash) != RNS.Identity.TRUNCATED_HASHLENGTH//8 or type(destination_hash) != bytes:
|
||||||
raise ValueError("Invalid destination hash for outbound propagation node")
|
raise ValueError("Invalid destination hash for outbound propagation node")
|
||||||
else:
|
else:
|
||||||
|
if self.outbound_propagation_node != destination_hash:
|
||||||
self.outbound_propagation_node = destination_hash
|
self.outbound_propagation_node = destination_hash
|
||||||
if self.outbound_propagation_link != None:
|
if self.outbound_propagation_link != None:
|
||||||
if self.outbound_propagation_link.destination.hash != destination_hash:
|
if self.outbound_propagation_link.destination.hash != destination_hash:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue