Revert "ClientList.cxx: copy client list before iterating"

This reverts commit f53dadcc6d, to
prepare for a better solution.
This commit is contained in:
Max Kellermann 2013-01-14 11:24:29 +01:00
parent d3a479b7fa
commit aa4c506fcd
1 changed files with 1 additions and 2 deletions

View File

@ -59,8 +59,7 @@ client_list_add(Client *client)
void
client_list_foreach(void (*callback)(Client *client, void *ctx), void *ctx)
{
auto clients_local = std::list<Client *>(clients);
for (Client *client : clients_local)
for (Client *client : clients)
callback(client, ctx);
}