diff --git a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java index 5b898866b7..d7e1770efb 100644 --- a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java +++ b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java @@ -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(); } } }