From 95c204ebeeca8f40ed0bcbb7ad4c3f9a8f39363d Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 2 Aug 2009 13:58:11 +0000 Subject: (svn r17038) -Fix (r17015): don't download the stuff we already have --- src/network/network_content.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index 0dab801c1..b10d2cf85 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -245,7 +245,7 @@ void ClientNetworkContentSocketHandler::DownloadSelectedContent(uint &files, uin ContentID *ids = MallocT(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; -- cgit v1.2.3-70-g09d2