Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2f0e8e

Browse files
authored
Merge branch 'main' into missingBreak
2 parents 2f185bc + fb8739f commit e2f0e8e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/asyncio/sslproto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ def abort(self):
244244
called with None as its argument.
245245
"""
246246
self._closed = True
247-
self._ssl_protocol._abort()
247+
if self._ssl_protocol is not None:
248+
self._ssl_protocol._abort()
248249

249250
def _force_close(self, exc):
250251
self._closed = True

0 commit comments

Comments
 (0)