Browse Source

taskMgr.destroy() should imply stop()

rdb 11 years ago
parent
commit
f8acde64f7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/task/Task.py

+ 1 - 0
direct/src/task/Task.py

@@ -136,6 +136,7 @@ class TaskManager:
 
 
     def destroy(self):
     def destroy(self):
         # This should be safe to call multiple times.
         # This should be safe to call multiple times.
+        self.running = False
         self.notify.info("TaskManager.destroy()")
         self.notify.info("TaskManager.destroy()")
         self.destroyed = True
         self.destroyed = True
         self._frameProfileQueue.clear()
         self._frameProfileQueue.clear()