From 191af8c12960c7fb86c20afead46fa5badb30a41 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 3 Mar 2009 23:30:32 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=17487 --- client/client_state.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/client_state.cpp b/client/client_state.cpp index 1f573a163d..58aaa78a82 100644 --- a/client/client_state.cpp +++ b/client/client_state.cpp @@ -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)