From 757cec9ddde84a6c3caf8c5e015ad042bb20fb61 Mon Sep 17 00:00:00 2001 From: R E Broadley Date: Thu, 17 May 2012 23:01:00 +0100 Subject: [PATCH] Should only be mapped when the getdata is done. Without this change, mappings will be created even after AlreadyHave equals true, and will never be erased. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 6096ee3e6..12522bdaa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3109,8 +3109,8 @@ bool SendMessages(CNode* pto, bool fSendTrickle) pto->PushMessage("getdata", vGetData); vGetData.clear(); } + mapAlreadyAskedFor[inv] = nNow; } - mapAlreadyAskedFor[inv] = nNow; pto->mapAskFor.erase(pto->mapAskFor.begin()); } if (!vGetData.empty())