From 26a7aec7ccf0a842fa978b5c4b214c2c6c8e6c4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com>
Date: Mon, 3 Apr 2017 17:39:15 -0400
Subject: [PATCH] dht: fix searchstep not scheduled after announcing

---
 src/dht.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dht.cpp b/src/dht.cpp
index d830a904..d7759df7 100644
--- a/src/dht.cpp
+++ b/src/dht.cpp
@@ -1362,7 +1362,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. */
-- 
GitLab