diff -r 5951c3591ffe -r 16de7b224a77 src/connection.c --- a/src/connection.c Thu Jul 10 06:55:23 2003 +0000 +++ b/src/connection.c Thu Jul 10 18:56:52 2003 +0000 @@ -175,9 +175,11 @@ gboolean gaim_connection_disconnect_cb(gpointer data) { - GaimConnection *gc = data; + GaimAccount *account = data; + GaimConnection *gc = gaim_account_get_connection(account); - gaim_connection_disconnect(gc); + if(gc) + gaim_connection_disconnect(gc); return FALSE; } @@ -371,7 +373,8 @@ if (ops != NULL && ops->disconnected != NULL) ops->disconnected(gc, text); - g_timeout_add(0, gaim_connection_disconnect_cb, gc); + g_timeout_add(0, gaim_connection_disconnect_cb, + gaim_connection_get_account(gc)); } void