Skip to content
Snippets Groups Projects
Commit 2b57c810 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

dht: clear announces on expire

parent 84578f78
No related branches found
No related tags found
No related merge requests found
...@@ -886,6 +886,7 @@ Dht::searchStep(std::shared_ptr<Search> sr) ...@@ -886,6 +886,7 @@ Dht::searchStep(std::shared_ptr<Search> sr)
for (const auto& a : sr->announce) for (const auto& a : sr->announce)
if (a.callback) if (a.callback)
a_cbs.emplace_back(std::move(a.callback)); a_cbs.emplace_back(std::move(a.callback));
sr->announce.clear();
for (const auto& a : a_cbs) for (const auto& a : a_cbs)
a(false, {}); a(false, {});
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment