fix grouping for isActive - socket.isBound is almost always true and should not override 'isOpen'
This commit is contained in:
parent
faf8becf2e
commit
39b8cc348a
@ -126,8 +126,9 @@ public class OioDatagramChannel extends AbstractOioMessageChannel
|
||||
|
||||
@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