fix: avoid assertion when terminating lte-softmodem process.
This commit is contained in:
@@ -330,8 +330,9 @@ int itti_send_msg_to_task(task_id_t destination_task_id, instance_t instance, Me
|
|||||||
|
|
||||||
if (destination_task_id != TASK_UNKNOWN) {
|
if (destination_task_id != TASK_UNKNOWN) {
|
||||||
|
|
||||||
if (itti_desc.threads[destination_thread_id].task_state == TASK_STATE_ENDED) {
|
if (itti_desc.threads[destination_thread_id].task_state == TASK_STATE_ENDED ||
|
||||||
ITTI_DEBUG(ITTI_DEBUG_ISSUES, " Message %s, number %lu with priority %d can not be sent from %s to queue (%u:%s), ended destination task!\n",
|
itti_desc.threads[destination_thread_id].task_state == TASK_STATE_NOT_CONFIGURED) {
|
||||||
|
ITTI_DEBUG(ITTI_DEBUG_ISSUES, " Message %s, number %lu with priority %d can not be sent from %s to queue (%u:%s), unconfigured or ended destination task!\n",
|
||||||
itti_desc.messages_info[message_id].name,
|
itti_desc.messages_info[message_id].name,
|
||||||
message_number,
|
message_number,
|
||||||
priority,
|
priority,
|
||||||
@@ -425,8 +426,9 @@ int itti_try_send_msg_to_task(task_id_t destination_task_id, instance_t instance
|
|||||||
|
|
||||||
if (destination_task_id != TASK_UNKNOWN) {
|
if (destination_task_id != TASK_UNKNOWN) {
|
||||||
|
|
||||||
if (itti_desc.threads[destination_thread_id].task_state == TASK_STATE_ENDED) {
|
if (itti_desc.threads[destination_thread_id].task_state == TASK_STATE_ENDED ||
|
||||||
ITTI_DEBUG(ITTI_DEBUG_ISSUES, " Message %s, number %lu with priority %d can not be sent from %s to queue (%u:%s), ended destination task!\n",
|
itti_desc.threads[destination_thread_id].task_state == TASK_STATE_NOT_CONFIGURED) {
|
||||||
|
ITTI_DEBUG(ITTI_DEBUG_ISSUES, " Message %s, number %lu with priority %d can not be sent from %s to queue (%u:%s), unconfigured or ended destination task!\n",
|
||||||
itti_desc.messages_info[message_id].name,
|
itti_desc.messages_info[message_id].name,
|
||||||
message_number,
|
message_number,
|
||||||
priority,
|
priority,
|
||||||
|
|||||||
Reference in New Issue
Block a user