refactoring

pull/3848/head
Nikita Koksharov 4 years ago
parent fefabcc065
commit 2ca883533b

@ -243,8 +243,7 @@ public class ClientConnectionsEntry {
freeConnections.add(connection);
return;
}
connection.decUsage();
if (connection.isPooled() && connection.getUsage() == 0) {
if (connection.decUsage() == 0 && connection.isPooled()) {
freeConnections.add(connection);
connection.setPooled(false);
}

Loading…
Cancel
Save