Node: don't expire existing requests

This commit is contained in:
Adrien Béraud committed 2017-10-16 17:12:33 +02:00
1 parent 6bc2f19a36
commit 488aa771a9
1 file changed
+1 -1
+1 -1
View File
@@ -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();