Don't report stats for server_only/no-graphics.

It may cause a crash on some devices eg. when glGetString returns NULL.
This commit is contained in:
Deve 2018-09-09 23:58:26 +02:00
parent ba37513f7a
commit 4262418532

View File

@ -2037,14 +2037,15 @@ int main(int argc, char *argv[] )
#endif
Log::warn("OpenGL", "OpenGL version is too old!");
}
}
#endif
// Note that on the very first run of STK internet status is set to
// "not asked", so the report will only be sent in the next run.
if(UserConfigParams::m_internet_status==Online::RequestManager::IPERM_ALLOWED)
{
HardwareStats::reportHardwareStats();
}
}
#endif
if (STKHost::existHost())
{