Skip to content
Snippets Groups Projects
Unverified Commit 62bf5d8d authored by Kumar Aditya's avatar Kumar Aditya Committed by GitHub
Browse files

GH-98539: fix ref cycle in `_SSLProtocolTransport` after close (#98540)

parent f4a14941
Branches
Tags
No related merge requests found
......@@ -107,8 +107,11 @@ def close(self):
protocol's connection_lost() method will (eventually) called
with None as its argument.
"""
if not self._closed:
self._closed = True
self._ssl_protocol._start_shutdown()
else:
self._ssl_protocol = None
def __del__(self, _warnings=warnings):
if not self._closed:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment