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 GitHub
parent ff0c014ade
commit 41ef4e4b02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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