From c215bf1d390d17337592740d5794248cabeaf6e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Tue, 3 May 2016 13:56:05 -0400
Subject: [PATCH] net: a pending request is a non-completed request

---
 include/opendht/network_engine.h | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/include/opendht/network_engine.h b/include/opendht/network_engine.h
index 16a9637b..d5afd2dd 100644
--- a/include/opendht/network_engine.h
+++ b/include/opendht/network_engine.h
@@ -210,11 +210,9 @@ public:
                 and not completed;
         }
 
-        bool pending(time_point now) const {
-            return not cancelled  
-               and not completed 
-               and reply_time < last_try
-               and now - last_try <= Node::MAX_RESPONSE_TIME;
+        bool pending(time_point /*now*/) const {
+            return not cancelled
+               and not completed;
         }
 
         void cancel() {
-- 
GitLab