Skip to content

Commit c68b67e

Browse files
bambomAlianBlank
authored andcommitted
【bug修复】 server启动 缺失逻辑 await
1 parent faa110d commit c68b67e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GameFrameX.Hotfix/StartUp/AppStartUpHotfixGameByEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public async Task<bool> OnLoadSuccess(AppSetting setting, bool reload)
1414

1515

1616
Init(setting.ServerType, setting);
17-
RunServer();
17+
await RunServer();
1818
// 启动定时器
1919
GlobalTimer.Start();
2020
await ComponentRegister.ActiveGlobalComponents();

GameFrameX.Hotfix/StartUp/AppStartUpHotfixGameByMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public override async Task StartAsync()
2323
await HttpServer.Start(Setting.HttpPort, Setting.HttpsPort, HotfixManager.GetListHttpHandler(), HotfixManager.GetHttpHandler);
2424
}
2525

26-
public async void RunServer(bool reload = false)
26+
public async Task RunServer(bool reload = false)
2727
{
2828
// 不管是不是重启服务器,都要加载配置
2929
await ConfigComponent.Instance.LoadConfig();

0 commit comments

Comments
 (0)