pidgin: 8ae84c4b: Remove the timer if sess->soap_table is ...

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Nov 25 16:40:25 EST 2008


-----------------------------------------------------------------
Revision: 8ae84c4bf78b72fd35f82b51f4b3510bedbbaa0f
Ancestor: 845ec94314a95bb005856c9ad1b69c43db58c70f
Author: markdoliner at pidgin.im
Date: 2008-11-25T21:35:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8ae84c4bf78b72fd35f82b51f4b3510bedbbaa0f

Modified files:
        libpurple/protocols/msn/soap.c

ChangeLog: 

Remove the timer if sess->soap_table is NULL.  I don't think this ever
actually happens, but it's cleaner.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/soap.c	a585590b4a5a3ae0079690892eab9ca8d83d9064
+++ libpurple/protocols/msn/soap.c	af6671b95e502554f678757ae48df6f96fef425c
@@ -190,13 +190,12 @@ msn_soap_cleanup_for_session(gpointer da
 		g_hash_table_foreach_remove(sess->soap_table, msn_soap_cleanup_each,
 			&t);
 
-		if (g_hash_table_size(sess->soap_table) == 0) {
-			sess->soap_cleanup_handle = 0;
-			return FALSE;
-		}
+		if (g_hash_table_size(sess->soap_table) != 0)
+			return TRUE;
 	}
 
-	return TRUE;
+	sess->soap_cleanup_handle = 0;
+	return FALSE;
 }
 
 static MsnSoapConnection *


More information about the Commits mailing list