generated from root/miduo_server
修改睡眠位置
parent
ec70e48902
commit
f8b395df43
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue