--- a/src/connection.c Sat Jul 05 07:33:48 2003 +0000 +++ b/src/connection.c Sat Jul 05 07:36:09 2003 +0000 @@ -172,6 +172,16 @@ gaim_connection_destroy(gc); } +gboolean +gaim_connection_disconnect_cb(gpointer data) +{ + GaimConnection *gc = data; + + gaim_connection_disconnect(gc); + + return FALSE; +} + /* * d:)->-< * @@ -361,7 +371,7 @@ if (ops != NULL && ops->disconnected != NULL) ops->disconnected(gc, text); - gaim_connection_disconnect(gc); + g_timeout_add(0, gaim_connection_disconnect_cb, gc); } void