Skip to content
Snippets Groups Projects
Commit 8567b7ad authored by Simon Désaulniers's avatar Simon Désaulniers Committed by Adrien Béraud
Browse files

network_engine: expire requests when clearing NE

This is to prevent any thread relying on network_engine's callback to block
forever just like the Dht::sendPing's callback.
parent 64118404
Branches
Tags
No related merge requests found
......@@ -131,7 +131,7 @@ void
NetworkEngine::clear()
{
for (auto& req : requests)
req.second->cancel();
req.second->setExpired();
requests.clear();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment