From 90e241ca85c31c09fc13fc521228ddb691e9d15d Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 9 Feb 2016 12:46:11 +0100 Subject: [PATCH] Fix: Cluster WQ thread dies after fork() fixes #11118 --- lib/remote/apilistener.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 8c8b894a2..3c53c04ea 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -572,6 +572,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); }