mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 23:36:30 +01:00
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"
|
||||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue