git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7527c85
)
add delay if tcp session cannot be started
author
ThomasV
<thomasv@gitorious>
Sun, 7 Apr 2013 04:13:56 +0000 (08:13 +0400)
committer
ThomasV
<thomasv@gitorious>
Sun, 7 Apr 2013 04:13:56 +0000 (08:13 +0400)
transports/stratum_tcp.py
patch
|
blob
|
history
diff --git
a/transports/stratum_tcp.py
b/transports/stratum_tcp.py
index
bc36a9e
..
8e28a57
100644
(file)
--- a/
transports/stratum_tcp.py
+++ b/
transports/stratum_tcp.py
@@
-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()