Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Close Liquibase database connection on shutdown.

  • Loading branch information...
commit 423884c30a97bcb0be731fe0fbae506fa0bcb685 1 parent fb9825f
Philip K. Warren authored
View
3  dropwizard-migrations/src/main/java/com/yammer/dropwizard/migrations/ManagedLiquibase.java
@@ -60,5 +60,8 @@ public void stop() throws Exception {
if (connection instanceof ManagedJdbcConnection) {
((ManagedJdbcConnection) connection).stop();
}
+ if (connection != null) {
+ connection.close();
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.