Revert "ClientList.cxx: copy client list before iterating"
This reverts commit f53dadcc6d
, to
prepare for a better solution.
This commit is contained in:
@@ -59,8 +59,7 @@ 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)
|
||||||
{
|
{
|
||||||
auto clients_local = std::list<Client *>(clients);
|
for (Client *client : clients)
|
||||||
for (Client *client : clients_local)
|
|
||||||
callback(client, ctx);
|
callback(client, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user