mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
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.
This commit is contained in:
1 parent
64118404fe
commit
8567b7ad84
1 file changed
+1
-1
@@ -131,7 +131,7 @@ void
|
||||
NetworkEngine::clear()
|
||||
{
|
||||
for (auto& req : requests)
|
||||
req.second->cancel();
|
||||
req.second->setExpired();
|
||||
requests.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user