aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR E Broadley <[email protected]>2012-05-17 23:01:00 +0100
committerR E Broadley <[email protected]>2012-05-17 23:01:00 +0100
commit757cec9ddde84a6c3caf8c5e015ad042bb20fb61 (patch)
treec6c6bd0633eb36547cce27feba6b9037484f9342
parentMerge pull request #1336 from laanwj/2012_05_consoleicon (diff)
downloaddiscoin-757cec9ddde84a6c3caf8c5e015ad042bb20fb61.tar.xz
discoin-757cec9ddde84a6c3caf8c5e015ad042bb20fb61.zip
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.
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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())