Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Call close() in ManagedJdbcConnection instead.

  • Loading branch information...
commit e85517d68166b81577ab55b11da140778af90044 1 parent 423884c
Philip K. Warren authored
4 dropwizard-migrations/src/main/java/com/yammer/dropwizard/migrations/ManagedLiquibase.java
View
@@ -30,6 +30,7 @@ public void start() throws Exception {
@Override
public void stop() throws Exception {
dataSource.stop();
+ close();
}
@Override
@@ -60,8 +61,5 @@ 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.