From: Gunnar Beutner Date: Thu, 26 Feb 2015 10:25:01 +0000 (+0100) Subject: Make sure that the 'connecting' flag is reset properly X-Git-Tag: v2.3.0~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b44fcb5712b880b08b2c95c0c25ec5b0292ac3f;p=icinga2 Make sure that the 'connecting' flag is reset properly refs #8485 --- diff --git a/lib/remote/endpoint.cpp b/lib/remote/endpoint.cpp index 85e344030..a7a9e7afe 100644 --- a/lib/remote/endpoint.cpp +++ b/lib/remote/endpoint.cpp @@ -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();