mirror of
https://github.com/python/cpython.git
synced 2025-10-04 22:20:46 +00:00
This commit is contained in:
parent
7a16a4535d
commit
fe9c7a0fd3
2 changed files with 9 additions and 4 deletions
|
@ -686,12 +686,14 @@ class SSLProtocol(protocols.Protocol):
|
|||
self._transport._force_close(exc)
|
||||
|
||||
def _finalize(self):
|
||||
self._sslpipe = None
|
||||
|
||||
if self._transport is not None:
|
||||
self._transport.close()
|
||||
|
||||
def _abort(self):
|
||||
if self._transport is not None:
|
||||
try:
|
||||
try:
|
||||
if self._transport is not None:
|
||||
self._transport.abort()
|
||||
finally:
|
||||
self._finalize()
|
||||
finally:
|
||||
self._finalize()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue