Mercurial > pidgin
diff libpurple/protocols/msn/notification.c @ 30710:f7ee91763c6b
msn: Remove msn_cmdproc_send_quick in favor of msn_cmdproc_send_trans
With this changes whe have an unified and robust way to send commands.
We avoid duplicated code and it's easier to find problems since the code is only
in one place.
author | masca@cpw.pidgin.im |
---|---|
date | Wed, 10 Mar 2010 22:16:04 +0000 |
parents | 4d7dfeae29c6 |
children | 54c8aeecab4c |
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c Wed Mar 10 21:46:37 2010 +0000 +++ b/libpurple/protocols/msn/notification.c Wed Mar 10 22:16:04 2010 +0000 @@ -304,12 +304,15 @@ void msn_notification_close(MsnNotification *notification) { + MsnTransaction *trans; + g_return_if_fail(notification != NULL); if (!notification->in_use) return; - msn_cmdproc_send_quick(notification->cmdproc, "OUT", NULL, NULL); + trans = msn_transaction_new(notification->cmdproc, "OUT", NULL, NULL); + msn_cmdproc_send_trans(notification->cmdproc, trans); msn_notification_disconnect(notification); }