Skip to content

Commit a78c67b

Browse files
committed
[修改]1. 程序参数 NetWorkSendTimeOutSeconds 没有设置的缺省设置
1 parent 827ec95 commit a78c67b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

GameFrameX.Utility/Setting/GlobalSettings.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ public static void SetCurrentSetting(AppSetting setting)
9898
LogHelper.WarnConsole("HttpUrl为空,使用默认值为: /game/api/");
9999
setting.HttpUrl = "/game/api/";
100100
}
101+
102+
if (setting.NetWorkSendTimeOutSeconds < 1)
103+
{
104+
LogHelper.WarnConsole("NetWorkSendTimeOutSeconds小于1秒,使用默认值为:5 秒");
105+
setting.NetWorkSendTimeOutSeconds = 5;
106+
}
101107

102108
CurrentSetting = setting;
103109
}

0 commit comments

Comments
 (0)