/// <summary> /// 处理断开连接 /// </summary> /// <param name="channel"></param> internal void onDisconnect(IChannel channel) { Console.WriteLine("channel disconnect"); FastSession fs = null; if (allSessions.ContainsKey(channel.Id.AsLongText())) { // allSessions.TryRemove(channel.Id.AsLongText(), out fs); fs.Close(); } }