electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 7653408ff44d1caec73ad90c562d200584704d91
parent 4ecb8f897e8af2d807382ffdf4e1951b1f145789
Author: ecdsa <ecdsa@github>
Date:   Sat, 27 Apr 2013 07:30:18 +0200

fix: socket error

Diffstat:
Mlib/interface.py | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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