Skip to content

Commit 6c4712b

Browse files
committed
Fix wrong logic. In that case the channel has been recovered, we just need to return
1 parent b93f54b commit 6c4712b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ protected final <T> void writeRequest(final Channel channel,
320320
abort(future, new ConnectException());
321321
return;
322322
} else {
323-
log.error("Channel is in close state {} and cannot be recovered", channel);
324-
abort(future, new ClosedChannelException());
323+
log.debug("Request {} has been recovered", nettyRequest);
325324
return;
326325
}
327326
}

0 commit comments

Comments
 (0)