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 cb5ef3d commit 3475e12Copy full SHA for 3475e12
src/java.net.http/share/classes/jdk/internal/net/http/Http2ClientImpl.java
@@ -188,9 +188,7 @@ void deleteConnection(Http2Connection c) {
188
if (debug.on())
189
debug.log("removing from the connection pool: %s", c);
190
synchronized (this) {
191
- Http2Connection c1 = connections.get(c.key());
192
- if (c1 != null && c1.equals(c)) {
193
- connections.remove(c.key());
+ if (connections.remove(c.key(), c)) {
194
195
debug.log("removed from the connection pool: %s", c);
196
}
0 commit comments