mirror of https://github.com/Icinga/icinga2.git
Bugfix for the reconnection handler.
This commit is contained in:
parent
63e318383d
commit
8ccc2be319
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue