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 1f049367a4
commit cab2a03760

View File

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