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"
|
task.status = "cancelled"
|
||||||
self.io_release_task(self.current_task)
|
self.io_release_task(self.current_task)
|
||||||
self.debugger.after_cancel(task)
|
self.debugger.after_cancel(task)
|
||||||
self.tasks.remove(self.current_task)
|
self.tasks.remove(task)
|
||||||
else:
|
else:
|
||||||
# If the task ignores our exception, we'll
|
# If the task ignores our exception, we'll
|
||||||
# raise it later again
|
# raise it later again
|
||||||
|
|
Loading…
Reference in New Issue