summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorOleg Iarygin <oleg@arhadthedev.net>2022-05-17 22:27:32 (GMT)
committerGitHub <noreply@github.com>2022-05-17 22:27:32 (GMT)
commit33880b4b1c60f54aa9e7fa02698a3c82eafe3dc7 (patch)
tree494016f49d778fc1d706a93a63e40e8355992e99 /Lib/asyncio
parent6b932cb13376b026d316d4f94679e66974d837d8 (diff)
downloadcpython-33880b4b1c60f54aa9e7fa02698a3c82eafe3dc7.zip
cpython-33880b4b1c60f54aa9e7fa02698a3c82eafe3dc7.tar.gz
cpython-33880b4b1c60f54aa9e7fa02698a3c82eafe3dc7.tar.bz2
gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842)
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/proactor_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py
index 9636c6b..ddb9dac 100644
--- a/Lib/asyncio/proactor_events.py
+++ b/Lib/asyncio/proactor_events.py
@@ -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: