Merge pull request #8013 from Icinga/bugfix/icingadb-stats-wq

Icinga DB: don't use the work queue for publishing stats
This commit is contained in:
Noah Hilverling 2020-05-15 11:25:38 +02:00 committed by GitHub
commit 26fc9a2738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -126,13 +126,11 @@ void IcingaDB::TryToReconnect()
void IcingaDB::PublishStatsTimerHandler(void)
{
m_WorkQueue.Enqueue([this]() { PublishStats(); });
PublishStats();
}
void IcingaDB::PublishStats()
{
AssertOnWorkQueue();
if (!m_Rcon || !m_Rcon->IsConnected())
return;