From d2e0dfe59c4760750f4090d3fc7280156d5017a9 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Wed, 7 Sep 2011 15:44:13 +0000 Subject: [PATCH] Fixing an issue with stopping script LoopingCall instances. Reported and investigated by raydeejay. --- src/scripts/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/scripts.py b/src/scripts/scripts.py index 3d1e824862..1502533a9a 100644 --- a/src/scripts/scripts.py +++ b/src/scripts/scripts.py @@ -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()