Browse Source

fixed Finder bug when callback is deleted on removed tasks

Joe Shochet 22 years ago
parent
commit
6446d3c673
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/task/Task.py

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

@@ -787,7 +787,7 @@ class TaskManager:
         import new
         import new
         for taskPriList in self.taskList:
         for taskPriList in self.taskList:
             for task in taskPriList:
             for task in taskPriList:
-                if task is None:
+                if (task is None) or (task.isRemoved()):
                     break
                     break
                 method = task.__call__
                 method = task.__call__
                 if (type(method) == types.MethodType):
                 if (type(method) == types.MethodType):