Fix checkstyle
This commit is contained in:
parent
e9d2ebea3d
commit
d504d78cb1
@ -300,9 +300,9 @@ public class SslHandler
|
||||
}
|
||||
|
||||
SSLException e = new SSLException("handshake timed out");
|
||||
if ( future.setFailure(e) ){
|
||||
ctx.fireExceptionCaught(e);
|
||||
ctx.close();
|
||||
if (future.setFailure(e)) {
|
||||
ctx.fireExceptionCaught(e);
|
||||
ctx.close();
|
||||
}
|
||||
}
|
||||
}, handshakeTimeoutMillis, TimeUnit.MILLISECONDS);
|
||||
@ -321,9 +321,9 @@ public class SslHandler
|
||||
handshakeFutures.add(future);
|
||||
flush(ctx, ctx.newFuture());
|
||||
} catch (Exception e) {
|
||||
if ( future.setFailure(e) ) {
|
||||
ctx.fireExceptionCaught(e);
|
||||
ctx.close();
|
||||
if (future.setFailure(e)) {
|
||||
ctx.fireExceptionCaught(e);
|
||||
ctx.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user