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"); SSLException e = new SSLException("handshake timed out");
if ( future.setFailure(e) ){ if (future.setFailure(e)) {
ctx.fireExceptionCaught(e); ctx.fireExceptionCaught(e);
ctx.close(); ctx.close();
} }
} }
}, handshakeTimeoutMillis, TimeUnit.MILLISECONDS); }, handshakeTimeoutMillis, TimeUnit.MILLISECONDS);
@ -321,9 +321,9 @@ public class SslHandler
handshakeFutures.add(future); handshakeFutures.add(future);
flush(ctx, ctx.newFuture()); flush(ctx, ctx.newFuture());
} catch (Exception e) { } catch (Exception e) {
if ( future.setFailure(e) ) { if (future.setFailure(e)) {
ctx.fireExceptionCaught(e); ctx.fireExceptionCaught(e);
ctx.close(); ctx.close();
} }
} }
} }