comparison libpurple/protocols/msn/slplink.c @ 24401:bceefbae1ca6

Reame msn_slplink_unleash to msn_slplink_send_queued_slpmsgs, which I think is more descriptive
author Mark Doliner <mark@kingant.net>
date Thu, 13 Nov 2008 08:45:40 +0000
parents b27908701f66
children b9e09053e53a
comparison
equal deleted inserted replaced
24399:9bdaf273c0ff 24401:bceefbae1ca6
410 410
411 msn_slplink_release_slpmsg(slplink, slpmsg); 411 msn_slplink_release_slpmsg(slplink, slpmsg);
412 } 412 }
413 413
414 void 414 void
415 msn_slplink_unleash(MsnSlpLink *slplink) 415 msn_slplink_send_queued_slpmsgs(MsnSlpLink *slplink)
416 { 416 {
417 MsnSlpMessage *slpmsg; 417 MsnSlpMessage *slpmsg;
418 418
419 /* Send the queued msgs in the order they came. */ 419 /* Send the queued msgs in the order they were created */
420
421 while ((slpmsg = g_queue_pop_tail(slplink->slp_msg_queue)) != NULL) 420 while ((slpmsg = g_queue_pop_tail(slplink->slp_msg_queue)) != NULL)
422 { 421 {
423 msn_slplink_release_slpmsg(slplink, slpmsg); 422 msn_slplink_release_slpmsg(slplink, slpmsg);
424 } 423 }
425 } 424 }
633 slpmsg->flags == 0x1000030) 632 slpmsg->flags == 0x1000030)
634 { 633 {
635 /* Release all the messages and send the ACK */ 634 /* Release all the messages and send the ACK */
636 635
637 msn_slplink_send_ack(slplink, msg); 636 msn_slplink_send_ack(slplink, msg);
638 msn_slplink_unleash(slplink); 637 msn_slplink_send_queued_slpmsgs(slplink);
639 } 638 }
640 639
641 msn_slpmsg_destroy(slpmsg); 640 msn_slpmsg_destroy(slpmsg);
642 641
643 if (slpcall != NULL && slpcall->wasted) 642 if (slpcall != NULL && slpcall->wasted)