Enable auto server recovery for wan servers only
This commit is contained in:
parent
13b3b3c2bd
commit
5f463f7f80
@ -385,7 +385,8 @@ void ServerLobby::asynchronousUpdate()
|
|||||||
handlePendingConnection();
|
handlePendingConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allowJoinedPlayersWaiting() && m_server_recovering.expired() &&
|
if (NetworkConfig::get()->isWAN() &&
|
||||||
|
allowJoinedPlayersWaiting() && m_server_recovering.expired() &&
|
||||||
StkTime::getRealTimeMs() > m_last_success_poll_time.load() + 30000)
|
StkTime::getRealTimeMs() > m_last_success_poll_time.load() + 30000)
|
||||||
{
|
{
|
||||||
Log::warn("ServerLobby", "Trying auto server recovery.");
|
Log::warn("ServerLobby", "Trying auto server recovery.");
|
||||||
|
Loading…
Reference in New Issue
Block a user