diff --git a/transport-native-kqueue/src/main/java/io/netty/channel/kqueue/KQueueDatagramChannel.java b/transport-native-kqueue/src/main/java/io/netty/channel/kqueue/KQueueDatagramChannel.java index 147523d7d0..439d03438e 100644 --- a/transport-native-kqueue/src/main/java/io/netty/channel/kqueue/KQueueDatagramChannel.java +++ b/transport-native-kqueue/src/main/java/io/netty/channel/kqueue/KQueueDatagramChannel.java @@ -279,7 +279,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 {