From 766f1c62e4ba66f729c0515e085d48c1a413f212 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 22 Dec 2017 09:53:58 +0100 Subject: [PATCH] Fixed comparison for none --- platypush/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/__init__.py b/platypush/__init__.py index e47f175b6..094f18718 100644 --- a/platypush/__init__.py +++ b/platypush/__init__.py @@ -119,7 +119,8 @@ class Daemon(object): 'origin attached: {}'.format(request)) self.processed_requests += 1 - if self.processed_requests >= self.requests_to_process: + if self.requests_to_process \ + and self.processed_requests >= self.requests_to_process: self.stop_app() return _thread_func