Fix paused tasks.

This commit is contained in:
Tehom 2018-05-10 19:30:58 -04:00
parent b4283a642b
commit f0bae25ca0

View file

@ -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