mirror of https://github.com/Icinga/icinga2.git
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:
commit
26fc9a2738
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue