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 a5c75a4 commit 768a104Copy full SHA for 768a104
providers/netty/src/main/java/org/asynchttpclient/providers/netty/channel/ChannelManager.java
@@ -307,14 +307,14 @@ public void close() {
307
}
308
309
public void closeChannel(Channel channel) {
310
- removeAll(channel);
311
- Channels.setDiscard(channel);
312
313
// The channel may have already been removed if a timeout occurred, and
314
// this method may be called just after.
315
if (channel != null) {
316
LOGGER.debug("Closing Channel {} ", channel);
317
try {
+ removeAll(channel);
+ Channels.setDiscard(channel);
318
channel.close();
319
} catch (Throwable t) {
320
LOGGER.debug("Error closing a connection", t);
0 commit comments