comparison src/connection.c @ 5624:4cc9e3fa22c4

[gaim-migrate @ 6031] Fixed the disconnect_all() bug. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 01 Jun 2003 02:19:35 +0000
parents 8c895d80159a
children 960fe32ea9b7
comparison
equal deleted inserted replaced
5623:8c895d80159a 5624:4cc9e3fa22c4
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)