Skip to content

Commit d68bd5d

Browse files
committed
fix: 修复关服打印报错
1 parent 8aedd68 commit d68bd5d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CaiBotLiteMod/Services/WebsocketManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ public static void StopWebsocket()
141141
catch (Exception ex)
142142
{
143143
Console.WriteLine("[CaiBotLite]Bot断开连接...");
144-
Console.WriteLine(ex.ToString());
144+
if (!_isStopWebsocket)
145+
{
146+
Console.WriteLine(ex.ToString());
147+
}
145148
}
146149

147150
await Task.Delay(5000);

0 commit comments

Comments
 (0)