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
|
@property
|
||||||
def active(self):
|
def active(self):
|
||||||
if not self._stopped:
|
if self._stopped is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -296,6 +296,7 @@ class Task(threading.Thread):
|
||||||
|
|
||||||
except:
|
except:
|
||||||
print_exception('[T/A:{}]'.format(self.name))
|
print_exception('[T/A:{}]'.format(self.name))
|
||||||
|
return False
|
||||||
|
|
||||||
def event(self, event):
|
def event(self, event):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue