修改睡眠位置

master
duhui 2021-11-17 15:16:16 +08:00
parent ec70e48902
commit f8b395df43
1 changed files with 2 additions and 2 deletions

View File

@ -161,14 +161,14 @@ public class AutoServerManager {
return false;
}
do {
// 间隔30秒再获取开服数据
Thread.sleep(DateUtil.ONE_SECOND * 30);
// 发送rpc到游戏服
Result result1 = RPCClient.gmSend(content,thriftIp,thriftPort);
if (result1 == null) {
// result1为空表示rpc发送失败最多重复三次
LOGGER.error("服务器验证状态异常,报null第{}次重试",i+1);
cont = "服务器验证状态异常,三次重试失败,游戏服未启动";
// 间隔30秒再获取开服数据
Thread.sleep(DateUtil.ONE_SECOND * 30);
i++;
continue;
}