Ejemplo n.º 1
0
 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);
     }
   }
 }
Ejemplo n.º 2
0
  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);
        }
      }
    }
  }