Skip to content

Commit d1c428a

Browse files
fix: mysql deadlock on is_closed during wrapper destructor (#1063)
1 parent 4bb55cf commit d1c428a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

aws_advanced_python_wrapper/plugin_service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,7 @@ def is_plugin_in_use(self, plugin_class: Type[Plugin]) -> bool:
703703

704704
def release_resources(self):
705705
try:
706-
if self.current_connection is not None and not self.driver_dialect.is_closed(
707-
self.current_connection):
706+
if self.current_connection is not None:
708707
self.current_connection.close()
709708
except Exception:
710709
# ignore

0 commit comments

Comments
 (0)