src/connection.c

changeset 6113
5bc7394e69ea
parent 6111
95ddad505e67
child 6136
4dbdaf8c986e
--- a/src/connection.c	Sun Jul 13 19:25:44 2003 +0000
+++ b/src/connection.c	Sun Jul 13 20:36:53 2003 +0000
@@ -407,9 +407,13 @@
 gaim_connections_disconnect_all(void)
 {
 	GList *l;
+	GaimConnection *gc;
 
-	while ((l = gaim_connections_get_all()) != NULL)
-		gaim_connection_destroy(l->data);
+	while ((l = gaim_connections_get_all()) != NULL) {
+		gc = l->data;
+		gc->wants_to_die = TRUE;
+		gaim_connection_destroy(gc);
+	}
 }
 
 GList *

mercurial