diff --git a/client/client_state.C b/client/client_state.C index 86d429b87e..9c833e30b4 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -536,10 +536,10 @@ FILE_INFO* CLIENT_STATE::lookup_file_info(PROJECT* p, char* name) { // Find the active task for a given workunit // -ACTIVE_TASK* CLIENT_STATE::lookup_active_task_by_workunit(WORKUNIT* wup) +ACTIVE_TASK* CLIENT_STATE::lookup_active_task_by_result(RESULT* rep) { for(int i = 0; i < active_tasks.active_tasks.size(); i ++) { - if(active_tasks.active_tasks[i]->wup == wup) return active_tasks.active_tasks[i]; + if(active_tasks.active_tasks[i]->result == rep) return active_tasks.active_tasks[i]; } return NULL; } diff --git a/client/client_state.h b/client/client_state.h index ba4f47218f..9b51523f3c 100644 --- a/client/client_state.h +++ b/client/client_state.h @@ -137,7 +137,7 @@ public: RESULT* lookup_result(PROJECT*, char*); WORKUNIT* lookup_workunit(PROJECT*, char*); APP_VERSION* lookup_app_version(APP*, int); - ACTIVE_TASK* lookup_active_task_by_workunit(WORKUNIT*); + ACTIVE_TASK* lookup_active_task_by_result(RESULT*); }; extern CLIENT_STATE gstate;