Fixed comparison for none

This commit is contained in:
Fabio Manganiello 2017-12-22 09:53:58 +01:00
parent 7a0295675c
commit 766f1c62e4

View file

@ -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