mirror of https://github.com/nocturn9x/giambio.git
Fixed wrong task object removed from self.tasks within self.cancel
This commit is contained in:
parent
a472116686
commit
0916d9634c
|
@ -689,7 +689,7 @@ class AsyncScheduler:
|
|||
task.status = "cancelled"
|
||||
self.io_release_task(self.current_task)
|
||||
self.debugger.after_cancel(task)
|
||||
self.tasks.remove(self.current_task)
|
||||
self.tasks.remove(task)
|
||||
else:
|
||||
# If the task ignores our exception, we'll
|
||||
# raise it later again
|
||||
|
|
Loading…
Reference in New Issue