fix: 修复json反序列化失败后没有重新Dispatch导致服务器无法继续处理客户端发送的消息

This commit is contained in:
wz 2020-09-25 10:47:21 +08:00
parent d227b5b7b2
commit bc0071095c

View File

@ -49,7 +49,7 @@ namespace FastTunnel.Core.Handlers.Server
{
client.Shutdown(SocketShutdown.Both);
}
catch
finally
{
client.Close();
}
@ -114,6 +114,7 @@ namespace FastTunnel.Core.Handlers.Server
// throw;
client.Send(new Message<LogMassage>() { MessageType = MessageType.Log, Content = new LogMassage(LogMsgType.Error, ex.Message) });
Dispatch(client);
}
}