From f961370e365c291fe89f0f12a156aa67e1059049 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 6 Feb 2020 13:03:04 +0100 Subject: [PATCH] ApiEvents: Fix AcknowledgementCleared code quality --- lib/icinga/apievents.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/icinga/apievents.cpp b/lib/icinga/apievents.cpp index 375ffe2fd..33493f933 100644 --- a/lib/icinga/apievents.cpp +++ b/lib/icinga/apievents.cpp @@ -245,13 +245,12 @@ void ApiEvents::AcknowledgementClearedHandler(const Checkable::Ptr& checkable, c result->Set("state", service ? static_cast(service->GetState()) : static_cast(host->GetState())); result->Set("state_type", checkable->GetStateType()); + result->Set("acknowledgement_type", AcknowledgementNone); for (const EventQueue::Ptr& queue : queues) { queue->ProcessEvent(result); } - result->Set("acknowledgement_type", AcknowledgementNone); - inboxes.Push(std::move(result)); }