Enable auto server recovery for wan servers only

This commit is contained in:
Benau 2018-09-21 20:37:45 +08:00
parent 13b3b3c2bd
commit 5f463f7f80

View File

@ -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.");