Skip to content

Commit a222944

Browse files
author
Stephane Landelle
committed
No need to throw exception hostnameVerifier failure, close AsyncHttpClient#715
1 parent 6924a42 commit a222944

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/request/NettyConnectListener.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ public void operationComplete(Future<? super Channel> handshakeFuture) throws Ex
109109
writeRequest(channel);
110110
} else {
111111
abortChannelPreemption(poolKey);
112-
ConnectException exception = new ConnectException("HostnameVerifier exception");
113-
future.abort(exception);
114-
throw exception;
112+
future.abort(new ConnectException("HostnameVerifier exception"));
115113
}
116114
}
117115
}

0 commit comments

Comments
 (0)