Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/flap_connection.c @ 32816: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 |
comparison
equal
deleted
inserted
replaced
32815:cb486df263ef | 32816:ec6371d4cae8 |
---|---|
454 | 454 |
455 /* | 455 /* |
456 * TODO: If we don't have a SNAC_FAMILY_LOCATE connection then | 456 * TODO: If we don't have a SNAC_FAMILY_LOCATE connection then |
457 * we should try to request one instead of disconnecting. | 457 * we should try to request one instead of disconnecting. |
458 */ | 458 */ |
459 if (!account->disconnecting && ((od->oscar_connections == NULL) | 459 if (!purple_account_is_disconnecting(account) && ((od->oscar_connections == NULL) |
460 || (!flap_connection_getbytype(od, SNAC_FAMILY_LOCATE)))) | 460 || (!flap_connection_getbytype(od, SNAC_FAMILY_LOCATE)))) |
461 { | 461 { |
462 /* No more FLAP connections! Sign off this PurpleConnection! */ | 462 /* No more FLAP connections! Sign off this PurpleConnection! */ |
463 gchar *tmp; | 463 gchar *tmp; |
464 PurpleConnectionError reason = PURPLE_CONNECTION_ERROR_NETWORK_ERROR; | 464 PurpleConnectionError reason = PURPLE_CONNECTION_ERROR_NETWORK_ERROR; |