dht: make sure we are synced before sending put

This commit is contained in:
Simon Désaulniers committed 2016-09-23 19:27:59 -04:00
1 parent 87cf6faedd
commit dc0b650aa3
1 file changed
+3
+3
View File
@@ -1213,6 +1213,9 @@ void Dht::searchSendAnnounceValue(const std::shared_ptr<Search>& sr) {
/* step to clear announces */
scheduler.edit(sr->nextSearchStep, now);
}
} else {
/* Search is now unsynced. Let's call searchStep to sync again. */
scheduler.edit(sr->nextSearchStep, sr->getNextStepTime(types, now));
}
++ait;
}