From d080e9297a3a64f8522f1c3dd39dd7a35ae3701e Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Tue, 6 Jun 2017 16:19:42 +0300 Subject: [PATCH] Don't try to get results from dead task --- pupy/pp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pupy/pp.py b/pupy/pp.py index f1c24432..5d7d3c79 100755 --- a/pupy/pp.py +++ b/pupy/pp.py @@ -288,7 +288,7 @@ class Task(threading.Thread): @property def active(self): - if not self._stopped: + if self._stopped is None: return False try: @@ -296,6 +296,7 @@ class Task(threading.Thread): except: print_exception('[T/A:{}]'.format(self.name)) + return False def event(self, event): pass