diff src/main.cpp @ 820:7e5ff9087b80 draft

Actually use mapAlreadyAskedFor. Previously, mapAlreadyAskedFor was read from, but never added to. The original intent was to use mapAlreadyAskedFor to keep track of the time an item was requested and "Each retry is 2 minutes after the last". This implements that intent.
author Matt Corallo <matt@bluematt.me>
date Thu, 21 Jul 2011 22:06:20 +0200
parents 361ab4abafbb
children c20efdc99b3a 5b1a1eeed2bb
line wrap: on
line diff
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2570,6 +2570,7 @@
                     vGetData.clear();
                 }
             }
+            mapAlreadyAskedFor[inv] = nNow;
             pto->mapAskFor.erase(pto->mapAskFor.begin());
         }
         if (!vGetData.empty())