Commit 4150c634 authored by winckel's avatar winckel

Fixed a task exit issue when receiving TERMINATE_MESSAGE before INITIALIZE_MESSAGE in L2L1 task.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4606 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 92273754
......@@ -399,6 +399,19 @@ static void *l2l1_task(void *args_p) {
free (message_p);
}
itti_receive_msg (TASK_L2L1, &message_p);
switch (ITTI_MSG_ID(message_p)) {
case INITIALIZE_MESSAGE:
break;
case TERMINATE_MESSAGE:
itti_exit_task ();
break;
default:
LOG_E(EMU, "Received unexpected message %s\n", ITTI_MSG_NAME(message_p));
break;
}
} while (ITTI_MSG_ID(message_p) != INITIALIZE_MESSAGE);
free (message_p);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment