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 e8c042e commit 6218aefCopy full SHA for 6218aef
ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnection.java
@@ -245,6 +245,7 @@ void closeConnectionFully(boolean logErrors) {
245
Log.error("Error checking if connection [" + name + "] is closed", ex);
246
}
247
248
+ lock.lock();
249
try {
250
for (ExtendedPreparedStatement ps : pstmtCache.values()) {
251
ps.closeDestroy();
@@ -253,6 +254,8 @@ void closeConnectionFully(boolean logErrors) {
253
254
if (logErrors) {
255
Log.warn("Error when closing connection Statements", ex);
256
257
+ } finally {
258
+ lock.unlock();
259
260
261
connection.close();
0 commit comments