commit 0ec436c02c5f186adefc86aa5b8becdcd5091af6
parent 828d8fd3ed19485b0d67d2929c6002fed8727fd9
Author: thomasv <thomasv@gitorious>
Date: Tue, 10 Sep 2013 16:42:11 +0200
fix: network start was calling __init__
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/interface.py b/lib/interface.py
@@ -143,6 +143,7 @@ class Interface(threading.Thread):
elif method == 'server.banner':
self.banner = result
+ print "banner"
self.network.trigger_callback('banner')
elif method == 'server.peers.subscribe':
@@ -605,6 +606,7 @@ class Interface(threading.Thread):
self.change_status()
def change_status(self):
+ #print "change status", self.server, self.is_connected
self.queue.put(self)
diff --git a/lib/network.py b/lib/network.py
@@ -54,7 +54,7 @@ class Network(threading.Thread):
def start(self, wait=False):
self.start_interfaces()
- threading.Thread.__init__(self)
+ threading.Thread.start(self)
if wait:
self.interface.connect_event.wait()
return self.interface.is_connected