diff libpurple/protocols/msn/cmdproc.c @ 23552:e069c16db597

Always save the MSN transaction in each command, not just for synchronous ones. Apparently, "URL" may or may not be async, but we also send it ourselves, too, and we need the transaction for other things. References #5762.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 17 Jul 2008 03:23:59 +0000
parents ba47ec8a2477
children 0ffa511ac165
line wrap: on
line diff
--- a/libpurple/protocols/msn/cmdproc.c	Wed Jul 16 03:53:28 2008 +0000
+++ b/libpurple/protocols/msn/cmdproc.c	Thu Jul 17 03:23:59 2008 +0000
@@ -263,7 +263,7 @@
 	MsnTransaction *trans = NULL;
 
 	if (cmd->trId)
-		trans = msn_history_find(cmdproc->history, cmd->trId);
+		cmd->trans = trans = msn_history_find(cmdproc->history, cmd->trId);
 
 	if (trans != NULL)
 		if (trans->timer) {
@@ -309,8 +309,6 @@
 
 	if (cb == NULL && trans != NULL)
 	{
-		cmd->trans = trans;
-
 		if (trans->callbacks != NULL)
 			cb = g_hash_table_lookup(trans->callbacks, cmd->command);
 	}