diff src/connection.c @ 6029:38999b6b1838

[gaim-migrate @ 6479] This fixes many random problems with oscar not being able to sign on or getting kicked offline. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 05 Jul 2003 07:36:09 +0000
parents d4caf585f6ff
children 547ba881bc7e
line wrap: on
line diff
--- 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