[gaim-migrate @ 9797]

Sat, 22 May 2004 23:24:19 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Sat, 22 May 2004 23:24:19 +0000
changeset 9021
d919862c9164
parent 9020
b7ea5436da4b
child 9022
87c53ac3febe

[gaim-migrate @ 9797]
This causes bad stuff to happen when an account is unable to connect.
I'm reverting to what it was before my change 20 minutes ago.
Hopefully I'll fix it later tonight
(Basically I don't think connecting accounts should be classified as "online.")

src/account.c file | annotate | diff | comparison | revisions
--- a/src/account.c	Sat May 22 23:17:26 2004 +0000
+++ b/src/account.c	Sat May 22 23:24:19 2004 +0000
@@ -683,7 +683,9 @@
 
 	gc = gaim_account_get_connection(account);
 
-	return ((gc != NULL) && GAIM_CONNECTION_IS_CONNECTED(gc));
+	/* XXX - The first way is better... but it doesn't work quite right yet */
+	/* return ((gc != NULL) && GAIM_CONNECTION_IS_CONNECTED(gc)); */
+	return ((gc != NULL) && gaim_connection_get_state(gc) != GAIM_DISCONNECTED);
 }
 
 const char *

mercurial