]> 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>
Wed, 20 Jan 2016 13:07:07 +0000 (14:07 +0100)
refs #10963

lib/remote/apilistener.cpp

index 2f36075abc353aa59d32e723af318e41a3544e79..747f709b7a47958d9b3f9dd3db13cb064762d0c7 100644 (file)
@@ -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() + "'");