mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
Node: don't expire existing requests
This commit is contained in:
1 parent
6bc2f19a36
commit
488aa771a9
1 file changed
+1
-1
+1
-1
@@ -79,7 +79,7 @@ void
|
||||
Node::requested(const Sp<net::Request>& req)
|
||||
{
|
||||
auto e = requests_.emplace(req->getTid(), req);
|
||||
if (not e.second) {
|
||||
if (not e.second and req != e.first->second) {
|
||||
// Should not happen !
|
||||
// Try to handle this scenario as well as we can
|
||||
e.first->second->setExpired();
|
||||
|
||||
Reference in new issue
Block a user