void AutoPrefixPropagator::afterPropagateSucceed(const ControlParameters& parameters, const CommandOptions& options, const ndn::Scheduler::Event& refreshEvent) { NFD_LOG_TRACE("success to propagate " << parameters.getName()); auto entryIt = m_propagatedEntries.find(parameters.getName()); if (entryIt == m_propagatedEntries.end()) { // propagation should be revoked if this entry has been erased (i.e., be in RELEASED state) NFD_LOG_DEBUG("Already erased!"); ControlParameters newParameters = parameters; return startRevocation(newParameters.unsetCost(), options, m_baseRetryWait); } // PROPAGATING --> PROPAGATED BOOST_ASSERT(entryIt->second.isPropagating()); entryIt->second.succeed(scheduler::schedule(m_refreshInterval, refreshEvent)); }