Fix: Cluster WQ thread dies after fork()

fixes #11118
This commit is contained in:
Gunnar Beutner 2016-02-09 12:46:11 +01:00
parent a30b112391
commit 80b8bdc640
1 changed files with 3 additions and 0 deletions

View File

@ -566,6 +566,9 @@ void ApiListener::ApiTimerHandler(void)
void ApiListener::RelayMessage(const MessageOrigin::Ptr& origin,
const ConfigObject::Ptr& secobj, const Dictionary::Ptr& message, bool log)
{
if (!IsActive())
return;
m_RelayQueue.Enqueue(boost::bind(&ApiListener::SyncRelayMessage, this, origin, secobj, message, log), PriorityNormal, true);
}