Mercurial > pidgin.yaz
comparison src/connection.c @ 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 | 1fc158d6ebdb |
children | ae8b0a12e6f3 |
comparison
equal
deleted
inserted
replaced
6295:44daf60ae44a | 6296:3ac224953483 |
---|---|
49 gc->prpl = gaim_find_prpl(gaim_account_get_protocol(account)); | 49 gc->prpl = gaim_find_prpl(gaim_account_get_protocol(account)); |
50 | 50 |
51 gaim_connection_set_account(gc, account); | 51 gaim_connection_set_account(gc, account); |
52 gaim_account_set_connection(account, gc); | 52 gaim_account_set_connection(account, gc); |
53 | 53 |
54 connections = g_list_append(connections, gc); | |
55 | |
54 return gc; | 56 return gc; |
55 } | 57 } |
56 | 58 |
57 void | 59 void |
58 gaim_connection_destroy(GaimConnection *gc) | 60 gaim_connection_destroy(GaimConnection *gc) |
147 } | 149 } |
148 | 150 |
149 gaim_connection_set_state(gc, GAIM_CONNECTING); | 151 gaim_connection_set_state(gc, GAIM_CONNECTING); |
150 | 152 |
151 gaim_debug(GAIM_DEBUG_INFO, "connection", "Calling serv_login\n"); | 153 gaim_debug(GAIM_DEBUG_INFO, "connection", "Calling serv_login\n"); |
152 | |
153 connections = g_list_append(connections, gc); | |
154 | 154 |
155 serv_login(account); | 155 serv_login(account); |
156 } | 156 } |
157 | 157 |
158 void | 158 void |