From: Gunnar Beutner Date: Wed, 20 Jan 2016 13:07:07 +0000 (+0100) Subject: Add missing SetSyncing() call X-Git-Tag: v2.5.0~609 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e48ed33000f9c8b6d8417c71abe7dba720a8b225;p=icinga2 Add missing SetSyncing() call refs #10963 --- diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 2f36075ab..747f709b7 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -749,8 +749,11 @@ void ApiListener::ReplayLog(const JsonRpcConnection::Ptr& client) { Endpoint::Ptr endpoint = client->GetEndpoint(); - if (endpoint->GetLogDuration() == 0) + if (endpoint->GetLogDuration() == 0) { + ObjectLock olock2(endpoint); + endpoint->SetSyncing(false); return; + } CONTEXT("Replaying log for Endpoint '" + endpoint->GetName() + "'");