]> granicus.if.org Git - icinga2/commitdiff
Bugfix for the reconnection handler.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 8 May 2012 08:22:47 +0000 (10:22 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 8 May 2012 08:22:47 +0000 (10:22 +0200)
components/discovery/discoverycomponent.cpp

index 7fccda4e611e9a8a2c9aa8715b9d4f987c9b3d42..5d63f32ffb146be1b46bcdf39f653e1bf03a74b5 100644 (file)
@@ -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 {