Skip to content
Browse files

GRAILS-9337 closing the connection pools after running the shutdown q…

…uery
  • Loading branch information...
1 parent e31359b commit 8762e71b56c2223cd6a6e92d68ead1d71aab3d8c Burt Beckwith committed
View
6 ...c/main/groovy/org/codehaus/groovy/grails/plugins/datasource/DataSourceGrailsPlugin.groovy
@@ -281,6 +281,12 @@ class DataSourceGrailsPlugin {
}
finally {
try { connection?.close() } catch (ignored) {}
+ try {
+ if (dataSource.respondsTo('close')) {
+ dataSource.close()
+ }
+ }
+ catch (ignored) {}
}
}

0 comments on commit 8762e71

Please sign in to comment.
Something went wrong with that request. Please try again.