Kaydet (Commit) 21b3e04c authored tarafından jimmylai's avatar jimmylai Kaydeden (comit) Łukasz Langa

call remove_done_callback in finally section (#1688)

üst 002665a9
......@@ -458,7 +458,8 @@ class BaseEventLoop(events.AbstractEventLoop):
# local task.
future.exception()
raise
future.remove_done_callback(_run_until_complete_cb)
finally:
future.remove_done_callback(_run_until_complete_cb)
if not future.done():
raise RuntimeError('Event loop stopped before Future completed.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment