commit ae654b30b95ea69488b725a1917ac8885dcee525
parent 8140d6c78e116edef6578799c73cfce374b296c8
Author: ecdsa <ecdsa@github>
Date: Mon, 16 Dec 2013 20:07:35 +0100
fix: pending_servers
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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