mirror of https://github.com/python/cpython
gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842)
This commit is contained in:
parent
6b932cb133
commit
33880b4b1c
|
@ -113,7 +113,7 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin,
|
|||
def __del__(self, _warn=warnings.warn):
|
||||
if self._sock is not None:
|
||||
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
|
||||
self.close()
|
||||
self._sock.close()
|
||||
|
||||
def _fatal_error(self, exc, message='Fatal error on pipe transport'):
|
||||
try:
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
:mod:`asyncio` no longer throws ``RuntimeError: Event loop is closed`` on
|
||||
interpreter exit after asynchronous socket activity. Patch by Oleg Iarygin.
|
Loading…
Reference in New Issue