[#3740] Add missing parentheses so the fix works as expected.

This commit is contained in:
Norman Maurer 2015-05-06 23:02:33 +02:00
parent 71f2e23633
commit d9ca3a01f1

View File

@ -192,8 +192,8 @@ public final class ChannelOutboundBuffer {
} }
long newWriteBufferSize = TOTAL_PENDING_SIZE_UPDATER.addAndGet(this, -size); long newWriteBufferSize = TOTAL_PENDING_SIZE_UPDATER.addAndGet(this, -size);
if (notifyWritability && newWriteBufferSize == 0 if (notifyWritability && (newWriteBufferSize == 0
|| newWriteBufferSize <= channel.config().getWriteBufferLowWaterMark()) { || newWriteBufferSize <= channel.config().getWriteBufferLowWaterMark())) {
setWritable(invokeLater); setWritable(invokeLater);
} }
} }