summaryrefslogtreecommitdiffstats
path: root/pyload/remote/wsbackend
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-18 20:47:50 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-18 20:47:50 +0200
commit876e2de602f22ace3a2fa9a2d56f48e3e807cd6a (patch)
tree1593de5edfdce1ef5e1c8a9162efcc89b3c48cbe /pyload/remote/wsbackend
parentfixed online status fetching (diff)
downloadpyload-876e2de602f22ace3a2fa9a2d56f48e3e807cd6a.tar.xz
small fixes for crypter
Diffstat (limited to 'pyload/remote/wsbackend')
-rw-r--r--pyload/remote/wsbackend/AsyncHandler.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyload/remote/wsbackend/AsyncHandler.py b/pyload/remote/wsbackend/AsyncHandler.py
index 527834b7c..136cc060d 100644
--- a/pyload/remote/wsbackend/AsyncHandler.py
+++ b/pyload/remote/wsbackend/AsyncHandler.py
@@ -68,11 +68,13 @@ class AsyncHandler(AbstractHandler):
def on_close(self, req):
try:
del req.queue
+ except AttributeError: # connection could be uninitialized
+ pass
+
+ try:
self.clients.remove(req)
except ValueError: # ignore when not in list
pass
- except AttributeError: # connection could be uninitialized
- pass
@lock
def add_event(self, event, *args, **kwargs):