private void OnChannelDisconnect(ITcpChannel source, Exception exception)
        {
            ITcpChannel removed;

            _usedChannels.TryRemove(source.ChannelId, out removed);
            OnClientDisconnected(source, exception);
            source.Cleanup();
            _channels.Push(source);
        }
 private void OnChannelDisconnect(ITcpChannel source, Exception exception)
 {
     OnClientDisconnected(source, exception);
     source.Cleanup();
     try
     {
         if (_channels != null &&
             _channels.ContainsKey(source.ChannelId))
         {
             ITcpChannel channel;
             _channels.TryRemove(source.ChannelId, out channel);
         }
     }
     catch (Exception) { }
 }
 private void OnChannelDisconnect(ITcpChannel source, Exception exception)
 {
     OnClientDisconnected(source, exception);
     source.Cleanup();
     _channels.Push(source);
 }
 private void OnChannelDisconnect(ITcpChannel source, Exception exception)
 {
     this.OnClientDisconnected(source, exception);
     source.Cleanup();
     this._channels.Push(source);
 }
Exemple #5
0
 private void OnChannelDisconnect(ITcpChannel source, Exception exception)
 {
     ITcpChannel removed;
     _usedChannels.TryRemove(source.ChannelId, out removed);
     OnClientDisconnected(source, exception);
     source.Cleanup();
     _channels.Push(source);
 }