Mercurial > pidgin
diff libpurple/protocols/oscar/flap_connection.c @ 32354:ec6371d4cae8
Add purple_account_is_disconnecting() accessor function.
author | andrew.victor@mxit.com |
---|---|
date | Sun, 06 Nov 2011 20:31:14 +0000 |
parents | 50cd80d3554e |
children |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/flap_connection.c Sun Nov 06 19:46:57 2011 +0000 +++ b/libpurple/protocols/oscar/flap_connection.c Sun Nov 06 20:31:14 2011 +0000 @@ -456,7 +456,7 @@ * TODO: If we don't have a SNAC_FAMILY_LOCATE connection then * we should try to request one instead of disconnecting. */ - if (!account->disconnecting && ((od->oscar_connections == NULL) + if (!purple_account_is_disconnecting(account) && ((od->oscar_connections == NULL) || (!flap_connection_getbytype(od, SNAC_FAMILY_LOCATE)))) { /* No more FLAP connections! Sign off this PurpleConnection! */