Commit 0194217f authored by Max Kellermann's avatar Max Kellermann

Revert "ClientList: allow deleting clients in client_list_foreach() callback"

This reverts commit f56c6a18. This fix is not necessary anymore because clients are now being deleted by the timer callback.
parent b0bbb8b6
......@@ -59,8 +59,8 @@ client_list_add(Client *client)
void
client_list_foreach(void (*callback)(Client *client, void *ctx), void *ctx)
{
for (auto client = clients.begin(); client != clients.end();)
callback(*(client++), ctx);
for (Client *client : clients)
callback(client, ctx);
}
void
......
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