修复自动幽境危战停止时弹出错误提示窗口的问题

This commit is contained in:
辉鸭蛋
2025-09-23 23:25:10 +08:00
parent eeb6bb320b
commit e779aab20b

View File

@@ -67,7 +67,18 @@ public class AutoStygianOnslaughtTask : ISoloTask
Init();
Notify.Event(NotificationEvent.DomainStart).Success($"{Name}启动");
await DoDomain();
try
{
await DoDomain();
}
catch (TaskCanceledException)
{
// do nothing
}
catch (Exception e)
{
_logger.LogInformation(e.Message);
}
await Delay(3000, ct);