aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-26 13:41:31 +0100
committerMax Kellermann <max@duempel.org>2014-01-26 13:41:40 +0100
commit8b6b3ff28a3406f8360920db5818ab321981c645 (patch)
treec4fe29030a6e653ab123110ef0d090a23021882a
parent4a3dc2cea2d6da10e3a1d1dfd62276db35d35323 (diff)
downloadmpd-8b6b3ff28a3406f8360920db5818ab321981c645.tar.gz
mpd-8b6b3ff28a3406f8360920db5818ab321981c645.tar.xz
mpd-8b6b3ff28a3406f8360920db5818ab321981c645.zip
neighbor/Glue: fix rollback range
-rw-r--r--src/neighbor/Glue.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/neighbor/Glue.cxx b/src/neighbor/Glue.cxx
index cc0780d58..7e29b8410 100644
--- a/src/neighbor/Glue.cxx
+++ b/src/neighbor/Glue.cxx
@@ -81,7 +81,7 @@ NeighborGlue::Open(Error &error)
i != end; ++i) {
if (!i->explorer->Open(error)) {
/* roll back */
- for (auto k = ++i; k != end; ++k)
+ for (auto k = explorers.begin(); k != i; ++k)
k->explorer->Close();
return false;
}