mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-10 23:07:52 +00:00
Actually use mapAlreadyAskedFor.
Previously, mapAlreadyAskedFor was read from, but never added to. The original intent was to use mapAlreadyAskedFor to keep track of the time an item was requested and "Each retry is 2 minutes after the last". This implements that intent.
This commit is contained in:
parent
9e3e21efeb
commit
643160f6e7
@ -2570,6 +2570,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
|
||||
vGetData.clear();
|
||||
}
|
||||
}
|
||||
mapAlreadyAskedFor[inv] = nNow;
|
||||
pto->mapAskFor.erase(pto->mapAskFor.begin());
|
||||
}
|
||||
if (!vGetData.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user