Merge pull request #186 from sim590/search-step-after-announce

dht: fix searchstep not scheduled after announcing
This commit is contained in:
Adrien Béraud authored and GitHub committed 2017-04-05 20:12:23 +02:00
commit 7f2b5a44ff
1 file changed
+1 -1
+1 -1
View File
@@ -1360,7 +1360,7 @@ void Dht::searchSendAnnounceValue(const Sp<Search>& sr) {
sn->acked[a.value->id] = std::make_pair(std::move(ack_req), next_refresh_time);
/* step to clear announces */
scheduler.edit(sr->nextSearchStep, next_refresh_time);
scheduler.edit(sr->nextSearchStep, now);
}
} else {
/* Search is now unsynced. Let's call searchStep to sync again. */