From 1ff4901846686ece84d4ca2ca367838bb5482415 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 21 Sep 2013 22:29:15 +0200 Subject: [PATCH] Make sure to remove listener, even after fail --- couchpotato/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/couchpotato/api.py b/couchpotato/api.py index 6cb227d..091de42 100644 --- a/couchpotato/api.py +++ b/couchpotato/api.py @@ -44,6 +44,7 @@ class NonBlockHandler(RequestHandler): def onNewMessage(self, response): if self.request.connection.stream.closed(): + self.on_connection_close() return try: