]> granicus.if.org Git - icinga2/commitdiff
Add missing SetSyncing() call
authorGunnar Beutner <gunnar@beutner.name>
Wed, 20 Jan 2016 13:07:07 +0000 (14:07 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 23 Feb 2016 09:46:18 +0000 (10:46 +0100)
refs #10963

lib/remote/apilistener.cpp

index 80263a46ae4df26c4f96e2fcb6521e643aec890d..3c53c04eafb81dad6ecf7ee2620abb9053e3c9ff 100644 (file)
@@ -808,8 +808,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() + "'");