mirror of https://github.com/BOINC/boinc.git
Client now writes state files when exiting normally.
svn path=/trunk/boinc/; revision=191
This commit is contained in:
parent
127d6a02f7
commit
a479ec72f7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue