Commit ab8a2021 authored by caminha's avatar caminha
Browse files

fixed data reuse in the producer

parent e94ffec8
......@@ -128,7 +128,7 @@ Producer::OnInterest(shared_ptr<const Interest> interest)
auto it = std::find_if(subscriptionRecords.begin(), subscriptionRecords.end(),
[&](const SubscriptionRecord* record) {
return interest->getName() == record->interestName &&
interest->getSubscriptionInterval() == record->subscriptionInterval;
interest->getSubscriptionInterval() >= record->subscriptionInterval;
});
if (it == subscriptionRecords.end())
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment