changeset 13724:65a39e436567

[gaim-migrate @ 16133] Kevin, let me know if this does or doesn't help your problems with AIM/ICQ not realizing that it has been disconnected committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 04 May 2006 12:18:03 +0000
parents 1983a8fc8e72
children 2d5c3098ea4b
files src/protocols/oscar/flap_connection.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/flap_connection.c	Thu May 04 00:33:33 2006 +0000
+++ b/src/protocols/oscar/flap_connection.c	Thu May 04 12:18:03 2006 +0000
@@ -208,7 +208,13 @@
 	g_free(conn);
 
 	account = gaim_connection_get_account(od->gc);
-	if ((od->oscar_connections == NULL) && (!account->disconnecting))
+
+	/*
+	 * 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)
+			|| (!flap_connection_getbytype(od, SNAC_FAMILY_LOCATE))))
 	{
 		/* No more FLAP connections!  Sign off this GaimConnection! */
 		const gchar *tmp;