We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f9807 commit b0c8ad4Copy full SHA for b0c8ad4
ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnection.java
@@ -246,6 +246,7 @@ void closeConnectionFully(boolean logErrors) {
246
* this method performs network IO and may block
247
*/
248
void doCloseConnection(boolean logErrors) {
249
+ pool.dec();
250
long start = System.nanoTime();
251
try {
252
@@ -280,7 +281,6 @@ void doCloseConnection(boolean logErrors) {
280
281
}
282
283
connection.close();
- pool.dec();
284
} catch (SQLException ex) {
285
if (logErrors || Log.isLoggable(System.Logger.Level.DEBUG)) {
286
Log.error("Error when fully closing connection [" + fullDescription() + "]", ex);
0 commit comments