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)); }