diff options
| author | R E Broadley <[email protected]> | 2012-05-17 23:01:00 +0100 |
|---|---|---|
| committer | R E Broadley <[email protected]> | 2012-05-17 23:01:00 +0100 |
| commit | 757cec9ddde84a6c3caf8c5e015ad042bb20fb61 (patch) | |
| tree | c6c6bd0633eb36547cce27feba6b9037484f9342 /src/main.cpp | |
| parent | Merge pull request #1336 from laanwj/2012_05_consoleicon (diff) | |
| download | discoin-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.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
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()) |