aboutsummaryrefslogtreecommitdiffstats
path: root/src/ClientList.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-14 11:24:29 +0100
committerMax Kellermann <max@duempel.org>2013-01-14 11:24:29 +0100
commitaa4c506fcd63cd20fee48d07fae02e84a1f73704 (patch)
tree43d8f763dcbe95b53dd55a107bc9dc30104ff32b /src/ClientList.cxx
parentd3a479b7fa1d1e52f9d3950139643fe7e3ff5a57 (diff)
downloadmpd-aa4c506fcd63cd20fee48d07fae02e84a1f73704.tar.gz
mpd-aa4c506fcd63cd20fee48d07fae02e84a1f73704.tar.xz
mpd-aa4c506fcd63cd20fee48d07fae02e84a1f73704.zip
Revert "ClientList.cxx: copy client list before iterating"
This reverts commit f53dadcc6d0a29ce7419a07a51762b4b44654696, to prepare for a better solution.
Diffstat (limited to 'src/ClientList.cxx')
-rw-r--r--src/ClientList.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ClientList.cxx b/src/ClientList.cxx
index 403da3a18..b45be34c3 100644
--- a/src/ClientList.cxx
+++ b/src/ClientList.cxx
@@ -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);
}