comparison src/connection.c @ 6076:8d6aa792e0f6

[gaim-migrate @ 6535] make the jabber error code, and the core error code more betterer. this should fix luke's problem with downed jabber servers committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 10 Jul 2003 18:56:52 +0000
parents 547ba881bc7e
children 99f4bbeb27bc
comparison
equal deleted inserted replaced
6075:f7ddc1f6227e 6076:8d6aa792e0f6
173 } 173 }
174 174
175 gboolean 175 gboolean
176 gaim_connection_disconnect_cb(gpointer data) 176 gaim_connection_disconnect_cb(gpointer data)
177 { 177 {
178 GaimConnection *gc = data; 178 GaimAccount *account = data;
179 179 GaimConnection *gc = gaim_account_get_connection(account);
180 gaim_connection_disconnect(gc); 180
181 if(gc)
182 gaim_connection_disconnect(gc);
181 183
182 return FALSE; 184 return FALSE;
183 } 185 }
184 186
185 /* 187 /*
369 ops = gaim_get_connection_ui_ops(); 371 ops = gaim_get_connection_ui_ops();
370 372
371 if (ops != NULL && ops->disconnected != NULL) 373 if (ops != NULL && ops->disconnected != NULL)
372 ops->disconnected(gc, text); 374 ops->disconnected(gc, text);
373 375
374 g_timeout_add(0, gaim_connection_disconnect_cb, gc); 376 g_timeout_add(0, gaim_connection_disconnect_cb,
377 gaim_connection_get_account(gc));
375 } 378 }
376 379
377 void 380 void
378 gaim_connections_disconnect_all(void) 381 gaim_connections_disconnect_all(void)
379 { 382 {