From 876e2de602f22ace3a2fa9a2d56f48e3e807cd6a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 18 Aug 2013 20:47:50 +0200 Subject: small fixes for crypter --- pyload/remote/wsbackend/AsyncHandler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pyload/remote/wsbackend/AsyncHandler.py') 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): -- cgit v1.2.3