mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
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…
x
Reference in New Issue
Block a user