Use correct enum values to detect three message tasks for retransmission

This commit is contained in:
Martin Willi
2012-03-20 17:31:40 +01:00
parent f98af1ddd5
commit 182d55b229
+2 -2
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;
}