From 1998633739b027b97ff89f92825512db91dca8f9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 16 Jan 2013 22:56:52 +0100 Subject: ClientGlobal: move client_close_all() to ClientList.cxx --- src/ClientGlobal.cxx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/ClientGlobal.cxx') diff --git a/src/ClientGlobal.cxx b/src/ClientGlobal.cxx index 47179b53..2ce2d383 100644 --- a/src/ClientGlobal.cxx +++ b/src/ClientGlobal.cxx @@ -53,20 +53,9 @@ void client_manager_init(void) * 1024; } -static void client_close_all(void) -{ - while (!client_list_is_empty()) { - Client *client = client_list_get_first(); - - client->Close(); - } - - assert(client_list_is_empty()); -} - void client_manager_deinit(void) { - client_close_all(); + client_list_close_all(); client_max_connections = 0; } -- cgit v1.2.3