Fixed comparison for none
This commit is contained in:
parent
7a0295675c
commit
766f1c62e4
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue