changeset 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 09968507937f
children 8cb4b863fdab
files src/main.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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())