changeset 16306:6a974950d2a8

Don't send a "transaction end" if we haven't sent a "transaction begin"
author Mark Doliner <mark@kingant.net>
date Sun, 22 Apr 2007 18:49:01 +0000
parents 03532b86c20f
children 9326d4cf5497
files libpurple/protocols/oscar/family_feedbag.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/family_feedbag.c	Sun Apr 22 18:20:05 2007 +0000
+++ b/libpurple/protocols/oscar/family_feedbag.c	Sun Apr 22 18:49:01 2007 +0000
@@ -550,8 +550,10 @@
 
 	/* We're out of stuff to do, so tell the AIM servers we're done and exit */
 	if (!od->ssi.pending) {
-		aim_ssi_modend(od);
-		od->ssi.in_transaction = FALSE;
+		if (od->ssi.in_transaction) {
+			aim_ssi_modend(od);
+			od->ssi.in_transaction = FALSE;
+		}
 		return 0;
 	}