More cleanup

This commit is contained in:
Trustin Lee 2009-03-04 14:11:54 +00:00
parent b9f604ca1d
commit 392900e4b6

View File

@ -339,7 +339,8 @@ public class SslHandler extends FrameDecoder {
PendingWrite pendingWrite =
new PendingWrite(evt.getFuture(), msg.toByteBuffer(msg.readerIndex(), msg.readableBytes()));
synchronized (pendingUnencryptedWrites) {
pendingUnencryptedWrites.offer(pendingWrite);
boolean offered = pendingUnencryptedWrites.offer(pendingWrite);
assert offered;
}
wrap(context, evt.getChannel());
@ -763,7 +764,8 @@ public class SslHandler extends FrameDecoder {
ChannelFuture closeNotifyFuture = wrapNonAppData(context, e.getChannel());
closeNotifyFuture.addListener(new ChannelFutureListener() {
public void operationComplete(ChannelFuture closeNotifyFuture) throws Exception {
closeFutures.offer(e.getFuture());
boolean offered = closeFutures.offer(e.getFuture());
assert offered;
}
});
}