Skip to content

Commit

Permalink
Use refreshNonce() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
matianxing1992 committed May 17, 2024
1 parent bf4d176 commit 6dd6be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ Consumer::handleTimeout(const Interest& interest, int nRetrials,
int factor = static_cast<int>(std::pow(2, m_maxRetries + 1 - nRetrials));
interestRetry.setCanBePrefix(true);
interestRetry.setInterestLifetime(ndn::time::milliseconds(m_defaultTimeout*factor));
interestRetry.setNonce(std::nullopt);
interestRetry.refreshNonce();
m_face.expressInterest(interestRetry, dataCallback,
std::bind(&Consumer::handleNack, this, _1, _2, errorCallback, nackMessage),
std::bind(&Consumer::handleTimeout, this, _1, nRetrials - 1,
Expand Down

0 comments on commit 6dd6be3

Please sign in to comment.