停止对异常事件的捕获

This commit is contained in:
zhengxuan.zhang
2024-04-22 16:36:43 +08:00
parent de5438ad49
commit 7d4261806f
2 changed files with 8 additions and 5 deletions
+6 -3
View File
@@ -102,9 +102,12 @@ namespace HexcalMC.Hexcal
try
{
WatchStatus = false;
_mWatchSocket.Close();
_mWatchSocket.Dispose();
_mWatchSocket = null;
if (_mWatchSocket != null)
{
_mWatchSocket.Close();
_mWatchSocket.Dispose();
_mWatchSocket = null;
}
_dictThread.Clear();
_dictSocket.Clear();