From: Gunnar Beutner Date: Tue, 8 May 2012 08:22:47 +0000 (+0200) Subject: Bugfix for the reconnection handler. X-Git-Tag: v0.0.1~555 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ccc2be319c33b3629165cdb94107e7ee6b3ef89;p=icinga2 Bugfix for the reconnection handler. --- diff --git a/components/discovery/discoverycomponent.cpp b/components/discovery/discoverycomponent.cpp index 7fccda4e6..5d63f32ff 100644 --- a/components/discovery/discoverycomponent.cpp +++ b/components/discovery/discoverycomponent.cpp @@ -413,7 +413,7 @@ int DiscoveryComponent::DiscoveryTimerHandler(const TimerEventArgs& tea) } Endpoint::Ptr endpoint = endpointManager->GetEndpointByIdentity(identity); - if (endpoint) { + if (endpoint && endpoint->IsConnected()) { /* update LastSeen if we're still connected to this endpoint */ info->LastSeen = now; } else {