git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4ecb8f8
)
fix: socket error
author
ecdsa
<ecdsa@github>
Sat, 27 Apr 2013 05:30:18 +0000 (07:30 +0200)
committer
ecdsa
<ecdsa@github>
Sat, 27 Apr 2013 05:30:18 +0000 (07:30 +0200)
lib/interface.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
f3dcd07
..
8a89ce3
100644
(file)
--- a/
lib/interface.py
+++ b/
lib/interface.py
@@
-336,6
+336,13
@@
class Interface(threading.Thread):
timeout = True
except ssl.SSLError:
timeout = True
+ except socket.error, err:
+ if err.errno == 11:
+ time.sleep(0.1)
+ continue
+ else:
+ traceback.print_exc(file=sys.stdout)
+ raise
if timeout:
# ping the server with server.version, as a real ping does not exist yet