diff --git a/transport/src/main/java/io/netty/channel/socket/nio/NioDatagramChannel.java b/transport/src/main/java/io/netty/channel/socket/nio/NioDatagramChannel.java index 3cace161a7..305fea7351 100644 --- a/transport/src/main/java/io/netty/channel/socket/nio/NioDatagramChannel.java +++ b/transport/src/main/java/io/netty/channel/socket/nio/NioDatagramChannel.java @@ -128,7 +128,7 @@ public final class NioDatagramChannel @Override public boolean isActive() { DatagramChannel ch = javaChannel(); - return ch.isOpen() && ch.socket().isBound(); + return ch.isOpen(); } @Override diff --git a/transport/src/main/java/io/netty/channel/socket/oio/OioDatagramChannel.java b/transport/src/main/java/io/netty/channel/socket/oio/OioDatagramChannel.java index 4d5c14eccd..ead6fd22a9 100644 --- a/transport/src/main/java/io/netty/channel/socket/oio/OioDatagramChannel.java +++ b/transport/src/main/java/io/netty/channel/socket/oio/OioDatagramChannel.java @@ -125,7 +125,7 @@ public class OioDatagramChannel extends AbstractOioMessageChannel @Override public boolean isActive() { - return isOpen() && socket.isBound(); + return isOpen(); } @Override