Mercurial > pidgin
comparison libpurple/protocols/oscar/flap_connection.c @ 24120:3b968076a5dc
Don't use g_queue_get_length because it requires glib 2.4
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 16 Sep 2008 17:30:23 +0000 |
parents | 8dcd6c1b923c |
children | fef608a31864 |
comparison
equal
deleted
inserted
replaced
24119:d4239c588fcf | 24120:3b968076a5dc |
---|---|
156 | 156 |
157 conn = data; | 157 conn = data; |
158 gettimeofday(&now, NULL); | 158 gettimeofday(&now, NULL); |
159 | 159 |
160 purple_debug_info("oscar", "Attempting to send %u queued SNACs and %u queued low-priority SNACs for %p\n", | 160 purple_debug_info("oscar", "Attempting to send %u queued SNACs and %u queued low-priority SNACs for %p\n", |
161 (conn->queued_snacs ? g_queue_get_length(conn->queued_snacs) : 0), | 161 (conn->queued_snacs ? conn->queued_snacs->length : 0), |
162 (conn->queued_lowpriority_snacs ? g_queue_get_length(conn->queued_lowpriority_snacs) : 0), | 162 (conn->queued_lowpriority_snacs ? conn->queued_lowpriority_snacs->length : 0), |
163 conn); | 163 conn); |
164 if (!conn->queued_snacs || flap_connection_send_snac_queue(conn, now, conn->queued_snacs)) { | 164 if (!conn->queued_snacs || flap_connection_send_snac_queue(conn, now, conn->queued_snacs)) { |
165 if (!conn->queued_lowpriority_snacs || flap_connection_send_snac_queue(conn, now, conn->queued_lowpriority_snacs)) { | 165 if (!conn->queued_lowpriority_snacs || flap_connection_send_snac_queue(conn, now, conn->queued_lowpriority_snacs)) { |
166 /* Both queues emptied. */ | 166 /* Both queues emptied. */ |
167 conn->queued_timeout = 0; | 167 conn->queued_timeout = 0; |