Fixing an issue with stopping script LoopingCall instances. Reported and investigated by raydeejay.
This commit is contained in:
parent
bc587dfd0c
commit
d2e0dfe59c
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class ScriptClass(TypeClass):
|
||||||
"stop task runner"
|
"stop task runner"
|
||||||
try:
|
try:
|
||||||
#print "stopping twisted task:", id(self.ndb.twisted_task), self.obj
|
#print "stopping twisted task:", id(self.ndb.twisted_task), self.obj
|
||||||
if self.ndb.twisted_task and not self.ndb.twisted_task.running:
|
if self.ndb.twisted_task and self.ndb.twisted_task.running:
|
||||||
self.ndb.twisted_task.stop()
|
self.ndb.twisted_task.stop()
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log_trace()
|
logger.log_trace()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue