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

dhtrunner: run shutdown in priority queue

Fix calling shutdown on a non-connected node.
parent 328a61df
Branches
Tags
No related merge requests found
......@@ -111,7 +111,7 @@ DhtRunner::run(const sockaddr_in* local4, const sockaddr_in6* local6, DhtRunner:
void
DhtRunner::shutdown(Dht::ShutdownCallback cb) {
std::lock_guard<std::mutex> lck(storage_mtx);
pending_ops.emplace([=](SecureDht& dht) mutable {
pending_ops_prio.emplace([=](SecureDht& dht) mutable {
dht.shutdown(cb);
});
cv.notify_all();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment