diff options
author | Max Kellermann <max@duempel.org> | 2013-01-16 22:49:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-16 22:49:51 +0100 |
commit | 0194217f9d35ec2bc6e5d1ff710cf4943737d0da (patch) | |
tree | 6ccb05e6f745d6feb3782fcd45eadc15fa23c20d /src/ClientList.cxx | |
parent | b0bbb8b693d846c2710ec84bfa79dcaa3a21729a (diff) | |
download | mpd-0194217f9d35ec2bc6e5d1ff710cf4943737d0da.tar.gz mpd-0194217f9d35ec2bc6e5d1ff710cf4943737d0da.tar.xz mpd-0194217f9d35ec2bc6e5d1ff710cf4943737d0da.zip |
Revert "ClientList: allow deleting clients in client_list_foreach() callback"
This reverts commit f56c6a18c13f4135fa9944cb7cb568115a018955. This
fix is not necessary anymore because clients are now being deleted by
the timer callback.
Diffstat (limited to 'src/ClientList.cxx')
-rw-r--r-- | src/ClientList.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClientList.cxx b/src/ClientList.cxx index a1248c8ec..b45be34c3 100644 --- a/src/ClientList.cxx +++ b/src/ClientList.cxx @@ -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 |