1
0

move init_socket in constructor

This commit is contained in:
thomasv
2012-10-12 16:09:20 +02:00
parent a95e834e2e
commit 1a781036cf
6 changed files with 4 additions and 10 deletions

View File

@@ -60,8 +60,6 @@ class InterfaceAncestor(threading.Thread):
self.responses = Queue.Queue()
self.unanswered_requests = {}
def init_socket(self):
pass
def poke(self):
# push a fake response so that the getting thread exits its loop
@@ -210,6 +208,7 @@ class TcpStratumInterface(InterfaceAncestor):
def __init__(self, host, port, proxy=None):
InterfaceAncestor.__init__(self, host, port, proxy)
self.init_socket()
def init_socket(self):
global proxy_modes
@@ -435,7 +434,6 @@ class WalletSynchronizer(threading.Thread):
def start_interface(self):
self.interface.init_socket()
self.interface.start()
if self.interface.is_connected:
self.wallet.start_session(self.interface)