commit 8c9a26cbf7b26bceaaa2beb481847ab9bda054c1
parent e7b2b179308bd27733c6c034157d052b90de328c
Author: ThomasV <thomasv1@gmx.de>
Date: Fri, 17 Jan 2014 21:57:06 -0800
Merge pull request #549 from dmcdad/patch-1
Fix timeout problem in interface.py.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/interface.py b/lib/interface.py
@@ -427,7 +427,9 @@ class Interface(threading.Thread):
except ssl.SSLError:
timeout = True
except socket.error, err:
- if err.errno in [11, 10035]:
+ if err.errno == 60:
+ timeout = True
+ elif err.errno in [11, 10035]:
print_error("socket errno", err.errno)
time.sleep(0.1)
continue