From f6c2c99efcf1ae564bebe0ab8f9f45391bb548f3 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Wed, 6 May 2015 23:02:33 +0200 Subject: [PATCH] [#3740] Add missing parentheses so the fix works as expected. --- .../src/main/java/io/netty/channel/ChannelOutboundBuffer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java b/transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java index fb44342bde..ed6dd1c8ab 100644 --- a/transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java +++ b/transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java @@ -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); } }