svn path=/trunk/boinc/; revision=17487

This commit is contained in:
David Anderson 2009-03-03 23:30:32 +00:00
parent 4a8b4fae2c
commit 191af8c129
1 changed files with 2 additions and 3 deletions

View File

@ -1172,14 +1172,13 @@ bool CLIENT_STATE::garbage_collect_always() {
// reference-count sticky files not marked for deletion
//
fi_iter = file_infos.begin();
while (fi_iter != file_infos.end()) {
for (fi_iter = file_infos.begin(); fi_iter!=file_infos.end(); fi_iter++) {
fip = *fi_iter;
if (!fip->sticky) continue;
if (fip->status < 0) continue;
if (fip->marked_for_delete) continue;
fip->ref_cnt++;
fi_iter++;
}
// remove PERS_FILE_XFERs (and associated FILE_XFERs and HTTP_OPs)