Fixed bug in handling exceptions raised during connection establishment.

This commit is contained in:
Anthony Tuininga 2023-11-21 16:35:22 -07:00
parent 65ad67ccc5
commit 04de11263e
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ Thin Mode Changes
#) Internal changes to improve handling of multiple address and description
lists in full connect descriptors.
#) Fixed bug in handling database response in certain unusual circumstances.
#) Fixed bug in handling exceptions raised during connection establishment.
Thick Mode Changes
++++++++++++++++++

View File

@ -340,7 +340,7 @@ cdef class Protocol:
Forces the connection closed. This is used when an unrecoverable error
has taken place.
"""
if self._socket is not None:
if self._socket is not None and self._read_buf._socket is not None:
sock = self._socket
if DEBUG_PACKETS:
now = datetime.datetime.now()