Don't show the polling log if currently server

This commit is contained in:
Benau 2018-07-20 15:46:07 +08:00
parent 0e1a5ea285
commit d4f7d6baaa
2 changed files with 9 additions and 1 deletions

View File

@ -344,6 +344,14 @@ namespace Online
request->queue();
} // requestPoll()
// ------------------------------------------------------------------------
OnlinePlayerProfile::PollRequest::PollRequest()
: XMLRequest(true)
{
m_disable_sending_log = NetworkConfig::get()->isNetworking() &&
NetworkConfig::get()->isServer();
} // PollRequest
// ------------------------------------------------------------------------
/** Callback for the poll request. Parses the information and spawns
* notifications accordingly.

View File

@ -61,7 +61,7 @@ namespace Online
{
virtual void callback ();
public:
PollRequest() : XMLRequest(true) {}
PollRequest();
}; // PollRequest
private: