Merge 3.6 (issue #28500)
This commit is contained in:
commit
f5cd8a29f3
|
@ -351,6 +351,9 @@ class BaseEventLoop(events.AbstractEventLoop):
|
|||
self._asyncgens.discard(agen)
|
||||
if not self.is_closed():
|
||||
self.create_task(agen.aclose())
|
||||
# Wake up the loop if the finalizer was called from
|
||||
# a different thread.
|
||||
self._write_to_self()
|
||||
|
||||
def _asyncgen_firstiter_hook(self, agen):
|
||||
if self._asyncgens_shutdown_called:
|
||||
|
|
Loading…
Reference in New Issue