From c60624f30307af68ef5cec672bb56a41ce0cee1b Mon Sep 17 00:00:00 2001 From: milimoe <110188673+milimoe@users.noreply.github.com> Date: Thu, 6 Feb 2025 21:18:14 +0800 Subject: [PATCH] fix #43 (#44) --- FunGame.Server/Models/ServerModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FunGame.Server/Models/ServerModel.cs b/FunGame.Server/Models/ServerModel.cs index fca888d..b900bd3 100644 --- a/FunGame.Server/Models/ServerModel.cs +++ b/FunGame.Server/Models/ServerModel.cs @@ -545,7 +545,7 @@ namespace Milimoe.FunGame.Server.Model // 每两小时触发一次SQL服务器的心跳查询,防止SQL服务器掉线 try { - await Task.Delay(2 * 1000 * 3600); + await Task.Delay(2 * 1000 * 3600, cts.Token); SQLHelper?.ExecuteDataSet(ServerLoginLogs.Select_GetLastLoginTime()); } catch (OperationCanceledException)