Commit bdc74f7e authored by Yury Selivanov's avatar Yury Selivanov

Revert da29a94367b2

parent 166db011
...@@ -249,7 +249,8 @@ class Task(futures.Future): ...@@ -249,7 +249,8 @@ class Task(futures.Future):
result._blocking = False result._blocking = False
result.add_done_callback(self._wakeup) result.add_done_callback(self._wakeup)
self._fut_waiter = result self._fut_waiter = result
if self._must_cancel and self._fut_waiter.cancel(): if self._must_cancel:
if self._fut_waiter.cancel():
self._must_cancel = False self._must_cancel = False
else: else:
self._loop.call_soon( self._loop.call_soon(
......
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