Skip to content

Commit 215c3c8

Browse files
committed
[修改]1. 修改热更新程序集的卸载时间为10分钟
1 parent 218e360 commit 215c3c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GameFrameX.Core/Hotfix/HotfixManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ private static async Task<bool> Load(HotfixModule newModule, AppSetting setting,
9999
DoingHotfix = true;
100100
var oldModuleHash = oldModule.GetHashCode();
101101
OldModuleMap.TryAdd(oldModuleHash, oldModule);
102-
// 延迟3分钟后清理旧模块
102+
// 延迟10分钟后清理旧模块
103103
_ = Task.Run(async () =>
104104
{
105-
await Task.Delay(1000 * 60 * 3);
105+
await Task.Delay(TimeSpan.FromMinutes(10));
106106
OldModuleMap.TryRemove(oldModuleHash, out _);
107107
oldModule.Unload();
108108
DoingHotfix = !OldModuleMap.IsEmpty;

0 commit comments

Comments
 (0)