changeset 13740:b51db12351b9

[gaim-migrate @ 16151] It's my hope that this will eliminate the problems auto-fetching AIM away messages (showing "(retrieving)" permanently). Although I don't entirely understand why it had problems before. Unless we just never got a response from a get info request. Which is possible, I guess. Anyhoo, this is just a tiny bit less graceful. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 08 May 2006 02:09:44 +0000
parents 599c0964c783
children 889ad72bc16e
files src/protocols/oscar/family_locate.c
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/family_locate.c	Mon May 08 01:54:52 2006 +0000
+++ b/src/protocols/oscar/family_locate.c	Mon May 08 02:09:44 2006 +0000
@@ -319,9 +319,6 @@
 {
 	struct userinfo_node *cur = od->locate.torequest;
 
-	if (cur == NULL)
-		return;
-
 	if (od->locate.waiting_for_response == TRUE)
 		return;
 
@@ -340,10 +337,16 @@
 	OscarData *od;
 
 	od = data;
+
+	if (od->locate.torequest == NULL)
+	{
+		od->getinfotimer = 0;
+		return FALSE;
+	}
+
 	aim_locate_dorequest(od);
-	od->getinfotimer = 0;
 
-	return FALSE;
+	return TRUE;
 }
 
 /**