Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pull Request] 插件逻辑优化 #135

Merged
merged 1 commit into from
Sep 22, 2022
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