Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions KitX Dashboard/Services/WebServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,12 @@ private async void ReciveMessage(object obj)
Log.Error($"Error: In ReciveMessage() : {ex.Message}");
Log.Information($"Connection broke from: {endpoint}");

PluginsManager.Disconnect(endpoint);

//Read是阻塞方法 客户端退出是会引发异常 释放资源 结束此线程
}
finally
{
//释放资源
PluginsManager.Disconnect(endpoint); //注销插件
stream.Close();
stream.Dispose();
clients.Remove(endpoint.ToString());
Expand Down