[#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 e71e40057f
commit f6c2c99efc

View File

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