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
|
||||
public boolean isActive() {
|
||||
return isOpen() && (config.getOption(ChannelOption.DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION) && isRegistered())
|
||||
|| socket.isBound();
|
||||
return isOpen()
|
||||
&& ((config.getOption(ChannelOption.DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION) && isRegistered())
|
||||
|| socket.isBound());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user