Skip to content

Commit

Permalink
Explicitly delete connection object after closing
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 14, 2025
1 parent 215b55b commit b1429ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neon_iris/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def shutdown(self):
# TODO: This is patching bad behavior in upstream neon_mq_connector
if self._connection.connection.is_open:
self._connection.connection.close()
LOG.info("Requested connection close")
del self._connection.connection
except Exception as e:
LOG.error(e)
try:
Expand Down

0 comments on commit b1429ac

Please sign in to comment.