]> granicus.if.org Git - icinga2/commitdiff
Make sure that the 'connecting' flag is reset properly
authorGunnar Beutner <gunnar@beutner.name>
Thu, 26 Feb 2015 10:25:01 +0000 (11:25 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 26 Feb 2015 10:26:08 +0000 (11:26 +0100)
refs #8485

lib/remote/endpoint.cpp

index 85e3440303116e3ee8128f5c04096e8174fe0223..a7a9e7afe6d246a2f749a524cef84064980f6e67 100644 (file)
@@ -83,6 +83,8 @@ void Endpoint::RemoveClient(const ApiClient::Ptr& client)
 
                Log(LogWarning, "ApiListener")
                    << "Removing API client for endpoint '" << GetName() << "'. " << m_Clients.size() << " API clients left.";
+
+               SetConnecting(false);
        }
 
        bool is_master = ApiListener::GetInstance()->IsMaster();