dht: fail pending readiness on shutdown and teardown

This commit is contained in:
Adrien Beraud committed 2026-10-07 22:25:19 -04:00
1 parent a853279de7
commit bd8c72bb07
2 files changed
+2

No files matched your search

+1
View File
@@ -83,6 +83,7 @@ Dht::shutdown(ShutdownCallback cb, bool stop)
cb(false, {});
}
sr.second->announce.clear();
sr.second->cache.onReady(false);
sr.second->listeners.clear();
}
}
+1
View File
@@ -851,6 +851,7 @@ struct Dht::Search
void clear()
{
cache.onReady(false);
announce.clear();
callbacks.clear();
listeners.clear();