mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Next: remove misleading comments on active() and self-evident on cancel()
This commit is contained in:
parent
94c503b4e6
commit
9313659074
1 changed files with 0 additions and 2 deletions
|
|
@ -475,7 +475,6 @@ class TaskHandler:
|
|||
|
||||
"""
|
||||
if task_id in self.tasks:
|
||||
# if the task has not been run, cancel it
|
||||
deferred = self.get_deferred(task_id)
|
||||
return not (deferred is not None and deferred.called)
|
||||
else:
|
||||
|
|
@ -495,7 +494,6 @@ class TaskHandler:
|
|||
|
||||
"""
|
||||
if task_id in self.tasks:
|
||||
# if the task has not been run, cancel it
|
||||
d = self.get_deferred(task_id)
|
||||
if d is not None: # it is remotely possible for a task to not have a deferred
|
||||
if d.called:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue