Remove stale subscriptions from local endpoint

Fixes #3563
This commit is contained in:
Gunnar Beutner 2013-01-24 10:21:26 +01:00
parent 1bbdfa2413
commit 19d654b7c2
1 changed files with 2 additions and 1 deletions

View File

@ -331,7 +331,8 @@ void EndpointManager::SubscriptionTimerHandler(void)
BOOST_FOREACH(tie(tuples::ignore, object), DynamicType::GetByName("Endpoint")->GetObjects()) {
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;
if (endpoint->GetSubscriptions()) {