mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
dht: fail pending readiness on shutdown and teardown
This commit is contained in:
1 parent
a853279de7
commit
bd8c72bb07
2 files changed
+2
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -851,6 +851,7 @@ struct Dht::Search
|
||||
|
||||
void clear()
|
||||
{
|
||||
cache.onReady(false);
|
||||
announce.clear();
|
||||
callbacks.clear();
|
||||
listeners.clear();
|
||||
|
||||
Reference in new issue
Block a user