mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 12:37:16 +02:00
taskhandler: remove add() variable shadowing
This commit is contained in:
parent
9313659074
commit
bae500c165
1 changed files with 1 additions and 4 deletions
|
|
@ -432,10 +432,7 @@ class TaskHandler:
|
|||
self.tasks[task_id] = (comp_time, callback, args, kwargs, persistent, None)
|
||||
|
||||
# defer the task
|
||||
callback = self.do_task
|
||||
args = [task_id]
|
||||
kwargs = {}
|
||||
d = deferLater(self.clock, timedelay, callback, *args, **kwargs)
|
||||
d = deferLater(self.clock, timedelay, self.do_task, task_id)
|
||||
d.addErrback(handle_error)
|
||||
|
||||
# some tasks may complete before the deferred can be added
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue