Don't log IDO statistics when we're not connected

refs #10860
This commit is contained in:
Gunnar Beutner 2015-12-17 12:05:35 +01:00
parent 30c445a5ee
commit 30b13ba2d6

View File

@ -67,6 +67,9 @@ void DbConnection::Start(bool runtimeCreated)
void DbConnection::StatsLoggerTimerHandler(void) void DbConnection::StatsLoggerTimerHandler(void)
{ {
if (!GetConnected())
return;
int pending = GetPendingQueryCount(); int pending = GetPendingQueryCount();
double now = Utility::GetTime(); double now = Utility::GetTime();