Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_SSLProtocolTransport
1 parent f4a1494 commit 62bf5d8Copy full SHA for 62bf5d8
1 file changed
Lib/asyncio/sslproto.py
@@ -107,8 +107,11 @@ def close(self):
107
protocol's connection_lost() method will (eventually) called
108
with None as its argument.
109
"""
110
- self._closed = True
111
- self._ssl_protocol._start_shutdown()
+ if not self._closed:
+ self._closed = True
112
+ self._ssl_protocol._start_shutdown()
113
+ else:
114
+ self._ssl_protocol = None
115
116
def __del__(self, _warnings=warnings):
117
if not self._closed:
0 commit comments