Skip to content

Commit 706016b

Browse files
committed
[misc] ensure multi host connection close call when not succeeded
1 parent 4434a29 commit 706016b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/mariadb/jdbc/client/impl/MultiPrimaryClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public void abort(Executor executor) throws SQLException {
488488
@Override
489489
public void close() throws SQLException {
490490
closed = true;
491-
currentClient.close();
491+
if (currentClient != null) currentClient.close();
492492
}
493493

494494
@Override

0 commit comments

Comments
 (0)