fixed timeout_check crash

svn path=/trunk/boinc/; revision=1830
This commit is contained in:
Karl Chen 2003-07-27 23:20:43 +00:00
parent 2381e55b46
commit 7da5ab0633
2 changed files with 10 additions and 0 deletions

View File

@ -5403,3 +5403,7 @@ Karl 2003/07/25
py/*
tools/*
client/*
Karl 2003/07/27
fixed bug in timeout_check if WU has no results
sched/timeout_check.C

View File

@ -165,6 +165,12 @@ void handle_wu(DB_WORKUNIT& wu) {
results.push_back(result);
}
if (results.size() == 0) {
log_messages.printf(SchedMessages::NORMAL, "[WU#%d %s] No results\n",
wu.id, wu.name);
return;
}
log_messages.printf(SchedMessages::DEBUG, "[WU#%d %s] enumerated %d results\n",
wu.id, wu.name, (int)results.size());