allowing remove() to be called on a removed task.

This commit is contained in:
Dave Schuyler 2003-11-01 07:12:21 +00:00
parent 2410cbc67c
commit 21b131f9ba

View File

@ -80,10 +80,11 @@ class Task:
return self.__onDoLaterList
def remove(self):
self.__removed = 1
# Remove any refs to real objects
# In case we hang around the doLaterList for a while
del self.__call__
if not self.__removed:
self.__removed = 1
# Remove any refs to real objects
# In case we hang around the doLaterList for a while
del self.__call__
def isRemoved(self):
return self.__removed