if get_message_by_id can't find message, wait until new message is pushed before retrying
This commit is contained in:
4
gdigi.c
4
gdigi.c
@@ -406,6 +406,10 @@ GString *get_message_by_id(MessageID id)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (found == FALSE)
|
||||||
|
g_cond_wait(message_queue_cond, message_queue_mutex);
|
||||||
|
|
||||||
g_mutex_unlock(message_queue_mutex);
|
g_mutex_unlock(message_queue_mutex);
|
||||||
} while (found == FALSE);
|
} while (found == FALSE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user