public void channelDisconnected(Channel channel) { stop(); for (ChannelListener l : channel_listeners) { try { l.channelDisconnected(channel); } catch (Throwable t) { log.warn("notifying channel listener " + l + " failed", t); } } }
public void channelDisconnected(Channel channel) { stop(); synchronized (additionalChannelListeners) { for (Iterator i = additionalChannelListeners.iterator(); i.hasNext(); ) { ChannelListener l = (ChannelListener) i.next(); try { l.channelDisconnected(channel); } catch (Throwable t) { log.warn("channel listener failed", t); } } } }