add delay if tcp session cannot be started
authorThomasV <thomasv@gitorious>
Sun, 7 Apr 2013 04:13:56 +0000 (08:13 +0400)
committerThomasV <thomasv@gitorious>
Sun, 7 Apr 2013 04:13:56 +0000 (08:13 +0400)
transports/stratum_tcp.py

index bc36a9e..8e28a57 100644 (file)
@@ -147,6 +147,7 @@ class TcpServer(threading.Thread):
             except BaseException, e:
                 error = str(e)
                 print_log("cannot start TCP session", error)
+                time.sleep(0.1)
                 continue
             self.dispatcher.add_session(session)
             self.dispatcher.collect_garbage()