From dc0b650aa352d5558334a88beb131e7cf305eedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com> Date: Wed, 21 Sep 2016 15:15:59 -0400 Subject: [PATCH] dht: make sure we are synced before sending put --- src/dht.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dht.cpp b/src/dht.cpp index c1550185..1782f870 100644 --- a/src/dht.cpp +++ b/src/dht.cpp @@ -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; } -- GitLab