# HG changeset patch # User Mark Doliner # Date 1227648959 0 # Node ID a9fdc17304d9b4fefcf56ff8892784a5f874a3c2 # Parent 64c5a37dcaeacfd8ce102dc71a60f4a12a6a7484 Remove the timer if sess->soap_table is NULL. I don't think this ever actually happens, but it's cleaner. diff -r 64c5a37dcaea -r a9fdc17304d9 libpurple/protocols/msn/soap.c --- 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 *