Code cleanup
This commit is contained in:
parent
fbfebb1fd9
commit
b9f604ca1d
@ -466,13 +466,14 @@ public class SslHandler extends FrameDecoder {
|
||||
MessageEvent encryptedWrite = new DownstreamMessageEvent(
|
||||
channel, future, msg, channel.getRemoteAddress());
|
||||
if (Thread.holdsLock(pendingEncryptedWrites)) {
|
||||
pendingEncryptedWrites.offer(encryptedWrite);
|
||||
offered = pendingEncryptedWrites.offer(encryptedWrite);
|
||||
|
||||
} else {
|
||||
synchronized (pendingEncryptedWrites) {
|
||||
pendingEncryptedWrites.offer(encryptedWrite);
|
||||
offered = pendingEncryptedWrites.offer(encryptedWrite);
|
||||
}
|
||||
}
|
||||
offered = true;
|
||||
assert offered;
|
||||
} else {
|
||||
HandshakeStatus handshakeStatus = result.getHandshakeStatus();
|
||||
switch (handshakeStatus) {
|
||||
|
Loading…
Reference in New Issue
Block a user