From 0841eb222c0cf0b814b332a7a7ab6d65685f86de Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 5 Apr 2010 03:25:58 +0000 Subject: [PATCH] - client: clean out project dir on reset. fixes #978 svn path=/trunk/boinc/; revision=21086 --- checkin_notes | 6 ++++++ client/client_state.cpp | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/checkin_notes b/checkin_notes index 924fa42762..2c2bcc92e2 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2470,3 +2470,9 @@ David 4 Apr 2010 client/ cpu_sched.cpp + +David 4 Apr 2010 + - client: clean out project dir on reset. fixes #978 + + client/ + client_state.cpp diff --git a/client/client_state.cpp b/client/client_state.cpp index 6af397a5a3..c505cba0eb 100644 --- a/client/client_state.cpp +++ b/client/client_state.cpp @@ -1576,6 +1576,10 @@ int CLIENT_STATE::reset_project(PROJECT* project, bool detaching) { } } garbage_collect_always(); + + char buf[1024]; + get_project_dir(project, buf, sizeof(buf)); + client_clean_out_dir(buf, "reset or detach project"); } project->duration_correction_factor = 1;