mirror of
https://github.com/markqvist/LXMF.git
synced 2025-07-28 17:44:32 -04:00
Fixed invalid name in peer culling. Thanks Stephan :)
This commit is contained in:
parent
2d1828513f
commit
ed4effdab7
1 changed files with 2 additions and 3 deletions
|
@ -1573,10 +1573,9 @@ class LXMRouter:
|
||||||
RNS.log("Selected waiting peer "+str(selected_index)+": "+RNS.prettyhexrep(selected_peer.destination.hash), RNS.LOG_DEBUG)
|
RNS.log("Selected waiting peer "+str(selected_index)+": "+RNS.prettyhexrep(selected_peer.destination.hash), RNS.LOG_DEBUG)
|
||||||
selected_peer.sync()
|
selected_peer.sync()
|
||||||
|
|
||||||
for peer in culled_peers:
|
for peer_id in culled_peers:
|
||||||
RNS.log("Removing peer "+RNS.prettyhexrep(peer)+" due to excessive unreachability", RNS.LOG_WARNING)
|
RNS.log("Removing peer "+RNS.prettyhexrep(peer_id)+" due to excessive unreachability", RNS.LOG_WARNING)
|
||||||
try:
|
try:
|
||||||
# TODO: Check this
|
|
||||||
if peer_id in self.peers:
|
if peer_id in self.peers:
|
||||||
self.peers.pop(peer_id)
|
self.peers.pop(peer_id)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue