Skip to content

Commit 3a00289

Browse files
author
Stephane Landelle
committed
Me idiot
1 parent 07a4195 commit 3a00289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ning/http/client/providers/netty/NettyConnectionsPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public boolean removeAll(Channel channel) {
266266
* {@inheritDoc}
267267
*/
268268
public boolean canCacheConnection() {
269-
return !isClosed.get() && (maxTotalConnections != -1 || channel2IdleChannel.size() < maxTotalConnections);
269+
return !isClosed.get() && (maxTotalConnections == -1 || channel2IdleChannel.size() < maxTotalConnections);
270270
}
271271

272272
/**

0 commit comments

Comments
 (0)