src/connection.c

changeset 5624
b1240853c0e7
parent 5623
9c9bb883154b
child 5631
7f510b22ccf5
equal deleted inserted replaced
5623:9c9bb883154b 5624:b1240853c0e7
337 void 337 void
338 gaim_connections_disconnect_all(void) 338 gaim_connections_disconnect_all(void)
339 { 339 {
340 GList *l; 340 GList *l;
341 341
342 for (l = gaim_connections_get_all(); l != NULL; l = l->next) 342 while ((l = gaim_connections_get_all()) != NULL)
343 gaim_connection_destroy(l->data); 343 gaim_connection_destroy(l->data);
344 } 344 }
345 345
346 GList * 346 GList *
347 gaim_connections_get_all(void) 347 gaim_connections_get_all(void)

mercurial