fix grouping for isActive - socket.isBound is almost always true and should not override 'isOpen'
This commit is contained in:
parent
1f049367a4
commit
cab2a03760
@ -126,8 +126,9 @@ public final class OioDatagramChannel extends AbstractOioMessageChannel implemen
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isActive() {
|
public boolean isActive() {
|
||||||
return isOpen() && (config.getOption(ChannelOption.DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION) && isRegistered())
|
return isOpen()
|
||||||
|| socket.isBound();
|
&& ((config.getOption(ChannelOption.DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION) && isRegistered())
|
||||||
|
|| socket.isBound());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user