/// <summary> /// 客户端主动断开 /// </summary> /// <param name="context"></param> public override void ChannelInactive(IChannelHandlerContext context) { string channelId = context.Channel.Id.AsShortText(); if (logger.IsEnabled(LogLevel.Debug)) { logger.LogDebug($">>>{ channelId } The client disconnects from the server."); } jT809SuperiorMainSessionManager.RemoveSessionByChannel(context.Channel); base.ChannelInactive(context); }