Always disable online user polling for wan server

With d6955f03fcbc21cb4cd9332d0d528063ad9a0f60 in stk-addons it is no
longer necessary
This commit is contained in:
Benau 2018-09-11 14:31:43 +08:00
parent 612e8bdaf6
commit 8bb2eeb629
2 changed files with 3 additions and 2 deletions

View File

@ -1298,6 +1298,9 @@ int handleCmdLine(bool has_server_config)
}
if (can_wan)
{
// Server owner online account will keep online as long as
// server is live
Online::RequestManager::m_disable_polling = true;
NetworkConfig::get()->setIsWAN();
NetworkConfig::get()->setIsPublicServer();
ServerConfig::loadServerLobbyFromConfig();

View File

@ -348,8 +348,6 @@ namespace Online
OnlinePlayerProfile::PollRequest::PollRequest()
: XMLRequest(true)
{
m_disable_sending_log = NetworkConfig::get()->isNetworking() &&
NetworkConfig::get()->isServer();
} // PollRequest
// ------------------------------------------------------------------------