Use correct enum values to detect three message tasks for retransmission

This commit is contained in:
Martin Willi 2012-02-02 10:49:19 +01:00
parent f98af1ddd5
commit 182d55b229
1 changed files with 2 additions and 2 deletions

View File

@ -485,8 +485,8 @@ METHOD(task_manager_t, initiate, status_t,
case SUCCESS:
/* task completed, remove it */
this->active_tasks->remove_at(this->active_tasks, enumerator);
if (task->get_type(task) == AGGRESSIVE ||
task->get_type(task) == QUICK_MODE)
if (task->get_type(task) == TASK_AGGRESSIVE_MODE ||
task->get_type(task) == TASK_QUICK_MODE)
{ /* last message of three message exchange */
keep = TRUE;
}