mirror of
https://github.com/markqvist/LXMF.git
synced 2025-08-03 20:34:17 -04:00
Peer cleanup fix
This commit is contained in:
parent
6aa793252f
commit
38b6f7651c
1 changed files with 3 additions and 2 deletions
|
@ -1566,7 +1566,8 @@ class LXMRouter:
|
||||||
for peer in culled_peers:
|
for peer in culled_peers:
|
||||||
RNS.log("Removing peer "+RNS.prettyhexrep(peer)+" due to excessive unreachability", RNS.LOG_WARNING)
|
RNS.log("Removing peer "+RNS.prettyhexrep(peer)+" due to excessive unreachability", RNS.LOG_WARNING)
|
||||||
try:
|
try:
|
||||||
# TODO: Check this and add "if in" clause
|
# TODO: Check this
|
||||||
|
if peer_id in self.peers:
|
||||||
self.peers.pop(peer_id)
|
self.peers.pop(peer_id)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
RNS.log("Error while removing peer "+RNS.prettyhexrep(peer_id)+". The contained exception was: "+str(e), RNS.LOG_ERROR)
|
RNS.log("Error while removing peer "+RNS.prettyhexrep(peer_id)+". The contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue