mirror of https://github.com/n1nj4sec/pupy.git
Don't try to get results from dead task
This commit is contained in:
parent
8cc46ed990
commit
d080e9297a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue