fix: network start was calling __init__
authorthomasv <thomasv@gitorious>
Tue, 10 Sep 2013 14:42:11 +0000 (16:42 +0200)
committerthomasv <thomasv@gitorious>
Tue, 10 Sep 2013 14:42:11 +0000 (16:42 +0200)
lib/interface.py
lib/network.py

index 770a654..4774880 100644 (file)
@@ -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)
 
 
index 657d6f8..bf75137 100644 (file)
@@ -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