From 488aa771a956fff01f079a2e1cedc096ccd27278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Mon, 16 Oct 2017 16:56:13 +0200 Subject: [PATCH] Node: don't expire existing requests --- src/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cpp b/src/node.cpp index 26cdb8de..7974b36e 100644 --- a/src/node.cpp +++ b/src/node.cpp @@ -79,7 +79,7 @@ void Node::requested(const Sp& 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();