Skip to content

Commit d125355

Browse files
committed
Remove workaround for netty/netty#5387
1 parent 3f2bd07 commit d125355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/main/java/org/asynchttpclient/netty/request/NettyChannelConnector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.net.InetAddress;
2020
import java.net.InetSocketAddress;
2121
import java.util.List;
22+
import java.util.concurrent.RejectedExecutionException;
2223

2324
import org.asynchttpclient.AsyncHandler;
2425
import org.asynchttpclient.AsyncHttpClientConfig;
@@ -66,8 +67,7 @@ public void connect(final Bootstrap bootstrap, final NettyConnectListener<?> con
6667

6768
try {
6869
connect0(bootstrap, connectListener, remoteAddress);
69-
} catch (Throwable e) {
70-
// workaround for https://github.com/netty/netty/issues/5387
70+
} catch (RejectedExecutionException e) {
7171
if (clientState.isClosed()) {
7272
connectListener.onFailure(null, e);
7373
} else {

0 commit comments

Comments
 (0)