mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dht: make sure we are synced before sending put
This commit is contained in:
1 file changed
+3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user