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:
parent
b0bbb8b693
commit
0194217f9d
@ -59,8 +59,8 @@ client_list_add(Client *client)
|
|||||||
void
|
void
|
||||||
client_list_foreach(void (*callback)(Client *client, void *ctx), void *ctx)
|
client_list_foreach(void (*callback)(Client *client, void *ctx), void *ctx)
|
||||||
{
|
{
|
||||||
for (auto client = clients.begin(); client != clients.end();)
|
for (Client *client : clients)
|
||||||
callback(*(client++), ctx);
|
callback(client, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user