Commit aa4c506f authored by Max Kellermann's avatar Max Kellermann

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

This reverts commit f53dadcc, to prepare for a better solution.
parent d3a479b7
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment