We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c64db7 commit 92280e4Copy full SHA for 92280e4
GameFrameX.Config/ConfigComponent.cs
@@ -18,7 +18,7 @@ private ConfigComponent()
18
19
private TablesComponent Tables { get; }
20
21
- public async void LoadConfig()
+ public async Task LoadConfig()
22
{
23
Tables.Init(Instance);
24
LogHelper.Info("Load Config Start...");
GameFrameX.Hotfix/StartUp/AppStartUpHotfixGameByMain.cs
@@ -26,7 +26,7 @@ public override async Task StartAsync()
26
public async void RunServer(bool reload = false)
27
28
// 不管是不是重启服务器,都要加载配置
29
- ConfigComponent.Instance.LoadConfig();
+ await ConfigComponent.Instance.LoadConfig();
30
if (reload)
31
32
ActorManager.ClearAgent();
0 commit comments