AbstractKQueueChannel#writeFilter is invoked with the correct boolean depending on the ChannelOutboundBuffer state (#11128)

Motivation:

This is a regression caused by #11086

Modifications:

AbstractKQueueChannel#writeFilter should be invoked with `!in.isEmpty()`
- false - all messages are written
- true - there are still messages to be written

Result:

AbstractKQueueChannel#writeFilter is invoked with the correct boolean depending on the ChannelOutboundBuffer state
This commit is contained in:
Violeta Georgieva 2021-03-30 20:16:03 +03:00 committed by Norman Maurer
parent b41891b602
commit bb97d1699d

View File

@ -280,7 +280,7 @@ public final class KQueueDatagramChannel extends AbstractKQueueChannel implement
}
// Whether all messages were written or not.
writeFilter(in.isEmpty());
writeFilter(!in.isEmpty());
}
private boolean doWriteMessage(Object msg) throws Exception {