File tree 1 file changed +3
-2
lines changed
src/main/java/com/ning/http/client/providers/netty
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -262,8 +262,9 @@ public ChannelPipeline getPipeline() throws Exception {
262
262
DefaultChannelFuture .setUseDeadLockChecker (false );
263
263
264
264
if (asyncHttpProviderConfig != null ) {
265
- if (asyncHttpProviderConfig .getProperty (NettyAsyncHttpProviderConfig .EXECUTE_ASYNC_CONNECT ) != null ) {
266
- executeConnectAsync = true ;
265
+ Object value = asyncHttpProviderConfig .getProperty (NettyAsyncHttpProviderConfig .EXECUTE_ASYNC_CONNECT );
266
+ if (value != null && Boolean .class .isAssignableFrom (value .getClass ())) {
267
+ executeConnectAsync = Boolean .class .cast (value );
267
268
} else if (asyncHttpProviderConfig .getProperty (NettyAsyncHttpProviderConfig .DISABLE_NESTED_REQUEST ) != null ) {
268
269
DefaultChannelFuture .setUseDeadLockChecker (true );
269
270
}
You can’t perform that action at this time.
0 commit comments