mirror of https://github.com/Icinga/icinga2.git
parent
1bbdfa2413
commit
19d654b7c2
|
@ -331,7 +331,8 @@ void EndpointManager::SubscriptionTimerHandler(void)
|
||||||
BOOST_FOREACH(tie(tuples::ignore, object), DynamicType::GetByName("Endpoint")->GetObjects()) {
|
BOOST_FOREACH(tie(tuples::ignore, object), DynamicType::GetByName("Endpoint")->GetObjects()) {
|
||||||
Endpoint::Ptr endpoint = dynamic_pointer_cast<Endpoint>(object);
|
Endpoint::Ptr endpoint = dynamic_pointer_cast<Endpoint>(object);
|
||||||
|
|
||||||
if (!endpoint->IsLocalEndpoint())
|
/* don't copy subscriptions from non-local endpoints or the identity endpoint */
|
||||||
|
if (!endpoint->IsLocalEndpoint() || endpoint == m_Endpoint)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (endpoint->GetSubscriptions()) {
|
if (endpoint->GetSubscriptions()) {
|
||||||
|
|
Loading…
Reference in New Issue