Client now writes state files when exiting normally.

svn path=/trunk/boinc/; revision=191
This commit is contained in:
Michael Gary 2002-07-12 22:08:09 +00:00
parent 127d6a02f7
commit a479ec72f7
1 changed files with 6 additions and 0 deletions

View File

@ -270,8 +270,14 @@ int CLIENT_STATE::make_slot_dirs() {
}
int CLIENT_STATE::exit_tasks() {
int retval;
active_tasks.exit_tasks();
active_tasks.poll_time();
retval = write_state_file();
if(retval) {
fprintf(stderr, "error: CLIENT_STATE.exit_tasks: write_state_file failed\n");
return retval;
}
return 0;
}