Browse Source

Merge pull request #1347 from rebroad/FixAlreadyAskedFor

mapAlreadyAskedFor gets additions when AlreadyHave()
miguelfreitas
Pieter Wuille 13 years ago
parent
commit
abbb9a829c
  1. 2
      src/main.cpp

2
src/main.cpp

@ -3158,8 +3158,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