Revert "ClientList.cxx: copy client list before iterating"
This reverts commit f53dadcc6d
, to
prepare for a better solution.
This commit is contained in:
parent
d3a479b7fa
commit
aa4c506fcd
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue