summaryrefslogtreecommitdiffstats
path: root/pyload/remote/wsbackend/Server.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/remote/wsbackend/Server.py')
-rw-r--r--pyload/remote/wsbackend/Server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyload/remote/wsbackend/Server.py b/pyload/remote/wsbackend/Server.py
index d6b25dfda..02da44f04 100644
--- a/pyload/remote/wsbackend/Server.py
+++ b/pyload/remote/wsbackend/Server.py
@@ -466,7 +466,8 @@ class WebSocketRequestHandler(CGIHTTPServer.CGIHTTPRequestHandler):
self, request, client_address, server)
except socket.error, e:
# Broken pipe, let it pass
- if e.errno != 32:
+ errno = e.args[0] # errno on py < 2.6
+ if errno != 32:
raise
self._logger.debug("WS: Broken pipe")