From 6c73e5fa5c01b68076917c0a064be4a5962f162c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com>
Date: Tue, 18 Oct 2016 18:01:15 -0400
Subject: [PATCH] dht: less cases clear values, storage maintenance

---
 src/dht.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/dht.cpp b/src/dht.cpp
index 8f5f9546..9b1092f0 100644
--- a/src/dht.cpp
+++ b/src/dht.cpp
@@ -2827,7 +2827,6 @@ Dht::maintainStorage(InfoHash id, bool force, DoneCallback donecb) {
             want4 = false;
         }
     }
-    else { want4 = false; }
 
     auto nodes6 = buckets6.findClosestNodes(id, now);
     if (!nodes6.empty()) {
@@ -2843,7 +2842,6 @@ Dht::maintainStorage(InfoHash id, bool force, DoneCallback donecb) {
             want6 = false;
         }
     }
-    else { want6 = false; }
 
     if (not want4 and not want6) {
         DHT_LOG_DEBUG("Discarding storage values %s", id.toString().c_str());
-- 
GitLab