changeset 24535:a9fdc17304d9

Remove the timer if sess->soap_table is NULL. I don't think this ever actually happens, but it's cleaner.
author Mark Doliner <mark@kingant.net>
date Tue, 25 Nov 2008 21:35:59 +0000
parents 64c5a37dcaea
children 15db3067a5ac
files libpurple/protocols/msn/soap.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/soap.c	Tue Nov 25 21:07:14 2008 +0000
+++ b/libpurple/protocols/msn/soap.c	Tue Nov 25 21:35:59 2008 +0000
@@ -190,13 +190,12 @@
 		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 *