Skip to content

Commit

Permalink
Fixes issue krummas#32 : if connection is already closed, do nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
StephG38 committed Sep 30, 2014
1 parent c10ee8c commit 336bc1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/drizzle/jdbc/DrizzleConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ public void rollback() throws SQLException {
* @throws SQLException if there is a problem talking to the server.
*/
public void close() throws SQLException {
if (isClosed())
return;
try {
this.timeoutExecutor.shutdown();
protocol.close();
Expand Down

0 comments on commit 336bc1b

Please sign in to comment.