(svn r17038) -Fix (r17015): don't download the stuff we already have

This commit is contained in:
rubidium 2009-08-02 13:58:11 +00:00
parent 7f49d3b45c
commit 95c204ebee

View File

@ -245,7 +245,7 @@ void ClientNetworkContentSocketHandler::DownloadSelectedContent(uint &files, uin
ContentID *ids = MallocT<ContentID>(infos.Length());
for (ContentIterator iter = infos.Begin(); iter != infos.End(); iter++) {
const ContentInfo *ci = *iter;
if (!ci->IsSelected()) continue;
if (!ci->IsSelected() || ci->state == ContentInfo::ALREADY_HERE) continue;
ids[files++] = ci->id;
bytes += ci->filesize;