From f0bae25ca04bdc9ecb7d929204fc5e3c8cc8b363 Mon Sep 17 00:00:00 2001 From: Tehom Date: Thu, 10 May 2018 19:30:58 -0400 Subject: [PATCH] Fix paused tasks. --- evennia/scripts/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/scripts/scripts.py b/evennia/scripts/scripts.py index eafb87ee72..2cade33281 100644 --- a/evennia/scripts/scripts.py +++ b/evennia/scripts/scripts.py @@ -292,7 +292,7 @@ class DefaultScript(ScriptBase): def at_idmapper_flush(self): """If we're flushing this object, make sure the LoopingCall is gone too""" ret = super(DefaultScript, self).at_idmapper_flush() - if ret: + if ret and self.ndb._task: try: from twisted.internet import reactor global FLUSHING_INSTANCES