public void channelClosed(Channel channel) {
   stop();
   for (ChannelListener l : channel_listeners) {
     try {
       l.channelClosed(channel);
     } catch (Throwable t) {
       log.warn("notifying channel listener " + l + " failed", t);
     }
   }
 }
Beispiel #2
0
  public void channelClosed(Channel channel) {

    stop();

    synchronized (additionalChannelListeners) {
      for (Iterator i = additionalChannelListeners.iterator(); i.hasNext(); ) {
        ChannelListener l = (ChannelListener) i.next();
        try {
          l.channelClosed(channel);
        } catch (Throwable t) {
          log.warn("channel listener failed", t);
        }
      }
    }
  }