Skip to content

Commit

Permalink
Merge pull request #33 from StephG38/master
Browse files Browse the repository at this point in the history
 Fixes issue #32 : if connection is already closed, do nothing
  • Loading branch information
krummas committed Dec 29, 2014
2 parents fb1ef83 + 336bc1b commit 0f8c00e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/drizzle/jdbc/DrizzleConnection.java
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 0f8c00e

Please sign in to comment.