comparison libpurple/protocols/msn/session.c @ 30317:ea96292336f0

Save and cancel-on-exit any URL requests, instead of checking the connection for validity when it might be gone.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 31 Jul 2010 20:47:31 +0000
parents 88a047f92c39
children 6c59e8ad1261 e53f81486d57
comparison
equal deleted inserted replaced
30313:30f16cb2f736 30317:ea96292336f0
54 msn_session_destroy(MsnSession *session) 54 msn_session_destroy(MsnSession *session)
55 { 55 {
56 g_return_if_fail(session != NULL); 56 g_return_if_fail(session != NULL);
57 57
58 session->destroying = TRUE; 58 session->destroying = TRUE;
59
60 while (session->url_datas) {
61 purple_util_fetch_url_cancel(session->url_datas->data);
62 session->url_datas = g_slist_delete_link(session->url_datas, session->url_datas);
63 }
59 64
60 if (session->connected) 65 if (session->connected)
61 msn_session_disconnect(session); 66 msn_session_disconnect(session);
62 67
63 if (session->soap_cleanup_handle) 68 if (session->soap_cleanup_handle)