Make DatagramChannel impls .isActive() return true when the underlying Channel is open. This also fixes [#1830]
This commit is contained in:
parent
7d9388a3cc
commit
f4f04a08c2
@ -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
|
||||
|
@ -125,7 +125,7 @@ public class OioDatagramChannel extends AbstractOioMessageChannel
|
||||
|
||||
@Override
|
||||
public boolean isActive() {
|
||||
return isOpen() && socket.isBound();
|
||||
return isOpen();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user