git://git.novaco.in
/
electrum-nvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix: pending_servers
[electrum-nvc.git]
/
lib
/
network.py
diff --git
a/lib/network.py
b/lib/network.py
index
81c9b96
..
ed0bab8
100644
(file)
--- a/
lib/network.py
+++ b/
lib/network.py
@@
-296,7
+296,9
@@
class Network(threading.Thread):
self.start_random_interface()
continue
- self.pending_servers.remove(i.server)
+ if i.server in self.pending_servers:
+ self.pending_servers.remove(i.server)
+
if i.is_connected:
#if i.server in self.interfaces: raise
self.interfaces[i.server] = i