changeset 6296:3ac224953483

[gaim-migrate @ 6795] The connection is now added to the list when it is created instead of when it starts connecting. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 24 Jul 2003 05:43:14 +0000
parents 44daf60ae44a
children ae8b0a12e6f3
files src/connection.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/connection.c	Thu Jul 24 05:32:53 2003 +0000
+++ b/src/connection.c	Thu Jul 24 05:43:14 2003 +0000
@@ -51,6 +51,8 @@
 	gaim_connection_set_account(gc, account);
 	gaim_account_set_connection(account, gc);
 
+	connections = g_list_append(connections, gc);
+
 	return gc;
 }
 
@@ -150,8 +152,6 @@
 
 	gaim_debug(GAIM_DEBUG_INFO, "connection", "Calling serv_login\n");
 
-	connections = g_list_append(connections, gc);
-
 	serv_login(account);
 }