Mercurial > pidgin
comparison libpurple/protocols/msn/soap.c @ 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 | d70eb6304eae |
children | 39289fd7e67f |
comparison
equal
deleted
inserted
replaced
24534:64c5a37dcaea | 24535:a9fdc17304d9 |
---|---|
188 | 188 |
189 if (sess->soap_table) { | 189 if (sess->soap_table) { |
190 g_hash_table_foreach_remove(sess->soap_table, msn_soap_cleanup_each, | 190 g_hash_table_foreach_remove(sess->soap_table, msn_soap_cleanup_each, |
191 &t); | 191 &t); |
192 | 192 |
193 if (g_hash_table_size(sess->soap_table) == 0) { | 193 if (g_hash_table_size(sess->soap_table) != 0) |
194 sess->soap_cleanup_handle = 0; | 194 return TRUE; |
195 return FALSE; | 195 } |
196 } | 196 |
197 } | 197 sess->soap_cleanup_handle = 0; |
198 | 198 return FALSE; |
199 return TRUE; | |
200 } | 199 } |
201 | 200 |
202 static MsnSoapConnection * | 201 static MsnSoapConnection * |
203 msn_soap_get_connection(MsnSession *session, const char *host) | 202 msn_soap_get_connection(MsnSession *session, const char *host) |
204 { | 203 { |