Fix checkstyle

This commit is contained in:
Norman Maurer 2012-10-13 09:21:40 +02:00
parent e9d2ebea3d
commit d504d78cb1

View File

@ -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();
}
}
}