Mercurial > pidgin.yaz
diff libpurple/protocols/msn/servconn.c @ 23571:af2cfc9a42b3
On MSN, cancel the connection process to a server before checking
servconn->connected. Otherwise, if the MsnServConn wasn't marked as
connected, and the account was disabled, the request would continue on
while the MsnServConn was freed.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 13 Jul 2008 01:15:09 +0000 |
parents | 186af522f14d |
children | 24f6212d1996 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/servconn.c Sat Jul 12 07:32:05 2008 +0000 +++ b/libpurple/protocols/msn/servconn.c Sun Jul 13 01:15:09 2008 +0000 @@ -255,6 +255,12 @@ { g_return_if_fail(servconn != NULL); + if (servconn->connect_data != NULL) + { + purple_proxy_connect_cancel(servconn->connect_data); + servconn->connect_data = NULL; + } + if (!servconn->connected) { /* We could not connect. */ @@ -273,12 +279,6 @@ return; } - if (servconn->connect_data != NULL) - { - purple_proxy_connect_cancel(servconn->connect_data); - servconn->connect_data = NULL; - } - if (servconn->inpa > 0) { purple_input_remove(servconn->inpa);