fix grouping for isActive - socket.isBound is almost always true and should not override 'isOpen'

This commit is contained in:
William Kemper 2014-01-16 14:59:29 -08:00 committed by Norman Maurer
parent faf8becf2e
commit 39b8cc348a

View File

@ -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