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

This reverts commit f56c6a18c1.  This
fix is not necessary anymore because clients are now being deleted by
the timer callback.
This commit is contained in:
Max Kellermann 2013-01-16 22:49:51 +01:00
parent b0bbb8b693
commit 0194217f9d

View File

@ -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