Fixing an issue with stopping script LoopingCall instances. Reported and investigated by raydeejay.

This commit is contained in:
Greg Taylor 2011-09-07 15:44:13 +00:00
parent bc587dfd0c
commit d2e0dfe59c

View file

@ -53,7 +53,7 @@ class ScriptClass(TypeClass):
"stop task runner"
try:
#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()
except Exception:
logger.log_trace()