Skip to content

Commit

Permalink
Fixed invalid name in peer culling. Thanks Stephan :)
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Apr 13, 2022
1 parent 2d18285 commit ed4effd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions LXMF/LXMF.py
Original file line number Diff line number Diff line change
Expand Up @@ -1573,10 +1573,9 @@ def sync_peers(self):
RNS.log("Selected waiting peer "+str(selected_index)+": "+RNS.prettyhexrep(selected_peer.destination.hash), RNS.LOG_DEBUG)
selected_peer.sync()

for peer in culled_peers:
RNS.log("Removing peer "+RNS.prettyhexrep(peer)+" due to excessive unreachability", RNS.LOG_WARNING)
for peer_id in culled_peers:
RNS.log("Removing peer "+RNS.prettyhexrep(peer_id)+" due to excessive unreachability", RNS.LOG_WARNING)
try:
# TODO: Check this
if peer_id in self.peers:
self.peers.pop(peer_id)
except Exception as e:
Expand Down

0 comments on commit ed4effd

Please sign in to comment.