diff --git a/direct/src/task/Task.py b/direct/src/task/Task.py index bffe8fa82d..f105e8f33c 100644 --- a/direct/src/task/Task.py +++ b/direct/src/task/Task.py @@ -136,6 +136,7 @@ class TaskManager: def destroy(self): # This should be safe to call multiple times. + self.running = False self.notify.info("TaskManager.destroy()") self.destroyed = True self._frameProfileQueue.clear()