From: ThomasV Date: Tue, 29 May 2012 12:25:36 +0000 (+0400) Subject: add session before the requestor is started X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=commitdiff_plain;h=66db91e315ba2f5624dc5622e422acf49e89ea54 add session before the requestor is started --- diff --git a/transports/stratum_tcp.py b/transports/stratum_tcp.py index 85fc8b7..8f0c936 100644 --- a/transports/stratum_tcp.py +++ b/transports/stratum_tcp.py @@ -123,11 +123,8 @@ class TcpServer(threading.Thread): sock.listen(1) while not self.shared.stopped(): session = TcpSession(*sock.accept()) - client_req = TcpClientRequestor(self.dispatcher, session) - client_req.start() self.dispatcher.add_session(session) self.dispatcher.collect_garbage() - - - + client_req = TcpClientRequestor(self.dispatcher, session) + client_req.start()