Commit 1252f780 authored by Marcus Lundblad's avatar Marcus Lundblad Committed by Youness Alaoui

Use g_queue_is_empty instead of g_queue_get_length

parent 694ff01b
...@@ -374,7 +374,7 @@ socket_dequeue_all_data (TurnPriv *priv, const NiceAddress *to) ...@@ -374,7 +374,7 @@ socket_dequeue_all_data (TurnPriv *priv, const NiceAddress *to)
GQueue *send_queue = g_hash_table_lookup (priv->send_data_queues, to); GQueue *send_queue = g_hash_table_lookup (priv->send_data_queues, to);
if (send_queue) { if (send_queue) {
while (g_queue_get_length (send_queue) > 0) { while (!g_queue_is_empty (send_queue)) {
SendData *data = SendData *data =
(SendData *) g_queue_pop_head(send_queue); (SendData *) g_queue_pop_head(send_queue);
......
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