Commit ea469e1b authored by Victor Stinner's avatar Victor Stinner

asyncio, Tulip issue 158: Task._step() now also sets self to None if an

exception is raised.  self is set to None to break a reference cycle.
parent 894d6e99
......@@ -325,7 +325,7 @@ class Task(futures.Future):
'Task got bad yield: {!r}'.format(result)))
finally:
self.__class__._current_tasks.pop(self._loop)
self = None
self = None # Needed to break cycles when an exception occurs.
def _wakeup(self, future):
try:
......
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