From 45b8254e248ccee2bb2c961bbb43912fc326ba22 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Wed, 29 Jan 2003 21:40:34 +0000 Subject: [PATCH] restarting task bug fix svn path=/trunk/boinc/; revision=843 --- client/app.C | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/app.C b/client/app.C index 3acb23cd58..5f62542d8b 100644 --- a/client/app.C +++ b/client/app.C @@ -630,16 +630,17 @@ int ACTIVE_TASK_SET::restart_tasks() { atp = *iter; atp->init(atp->result); get_slot_dir(atp->slot, atp->slot_dir); + atp->result->is_active = true; retval = atp->start(false); if (log_flags.task) { printf("restarting application for result %s\n", atp->result->name); } if (retval) { fprintf(stderr, "ACTIVE_TASKS::restart_tasks(); restart failed: %d\n", retval); - atp->result->active_task_state = PROCESS_COULDNT_START; - atp->result->client_state = CLIENT_COMPUTING; - gstate.report_project_error(*(atp->result),retval,"Couldn't restart the app for this result.\n",CLIENT_COMPUTING); - + atp->result->active_task_state = PROCESS_COULDNT_START; + atp->result->client_state = CLIENT_COMPUTING; + gstate.report_project_error(*(atp->result),retval,"Couldn't restart the app for this result.\n",CLIENT_COMPUTING); + active_tasks.erase(iter); } else { iter++;