Browse Source

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.
0.8
R E Broadley 13 years ago
parent
commit
757cec9ddd
  1. 2
      src/main.cpp

2
src/main.cpp

@ -3109,8 +3109,8 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
pto->PushMessage("getdata", vGetData); pto->PushMessage("getdata", vGetData);
vGetData.clear(); vGetData.clear();
} }
mapAlreadyAskedFor[inv] = nNow;
} }
mapAlreadyAskedFor[inv] = nNow;
pto->mapAskFor.erase(pto->mapAskFor.begin()); pto->mapAskFor.erase(pto->mapAskFor.begin());
} }
if (!vGetData.empty()) if (!vGetData.empty())

Loading…
Cancel
Save