Skip to content

Commit e57450c

Browse files
committed
Ensure shutdown_on_error is set before defuncting the connection
1 parent 43f6928 commit e57450c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎cassandra/connection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,10 +1012,10 @@ def run(self):
10121012

10131013
forconnection, owner, excinfailed_connections:
10141014
self._raise_if_stopped()
1015-
connection.defunct(exc)
10161015
ifnotconnection.is_control_connection:
10171016
# Only HostConnection supports shutdown_on_error
10181017
owner.shutdown_on_error=True
1018+
connection.defunct(exc)
10191019
owner.return_connection(connection)
10201020
exceptself.ShutdownException:
10211021
pass

0 commit comments

Comments
(0)