Skip to content

Commit

Permalink
Fix AmazonTimestreamQuery client object leak (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
omossad authored Jan 6, 2024
1 parent f88ab6b commit 269b4f2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ public boolean isValid(int timeout) throws SQLException {
} catch (Exception e) {
LOGGER.error("Connection is no longer valid: {}", e.getMessage());
return false;
} finally {
client.shutdown();
}
}

Expand Down

0 comments on commit 269b4f2

Please sign in to comment.