case NetworkPackage::NETWORK_TARGET_UPPER_HUBS:
// Get all bootstrap nodes
foreach (explode(BaseHubSystem::BOOTSTRAP_NODES_SEPERATOR, $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $node) {
+ // Debug message
+ /* DEBUG: */ $this->debugOutput('DISCOVERY: Adding node ' . $node . ' as recipient.');
+
// Add the entry
$listInstance->addEntry('ip_port', $node);
} // END - foreach
$iteratorInstance->next();
} // END - while
- // Clean-up the list
+ /*
+ * The recipient list can be cleaned up here because the package which
+ * shall be delivered has been added for all entries from the list.
+ */
$discoveryInstance->clearRecipients();
}