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 6184f2e commit f93bb0cCopy full SHA for f93bb0c
src/main/java/com/ning/http/client/providers/grizzly/GrizzlyConnectionsPool.java
@@ -227,11 +227,11 @@ public boolean removeAll(Connection connection) {
227
boolean isRemoved = false;
228
for (Map.Entry<String, DelayedExecutor.IdleConnectionQueue> entry : connectionsPool.entrySet()) {
229
boolean removed = entry.getValue().remove(connection);
230
- if (removed) {
231
- totalCachedConnections.decrementAndGet();
232
- }
233
isRemoved |= removed;
234
}
+ if (isRemoved) {
+ totalCachedConnections.decrementAndGet();
+ }
235
return isRemoved;
236
237
0 commit comments