git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
828d8fd
)
fix: network start was calling __init__
author
thomasv
<thomasv@gitorious>
Tue, 10 Sep 2013 14:42:11 +0000 (16:42 +0200)
committer
thomasv
<thomasv@gitorious>
Tue, 10 Sep 2013 14:42:11 +0000 (16:42 +0200)
lib/interface.py
patch
|
blob
|
history
lib/network.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
770a654
..
4774880
100644
(file)
--- 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
index
657d6f8
..
bf75137
100644
(file)
--- 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