diff options
author | Max Kellermann <max@duempel.org> | 2014-01-26 13:41:31 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-26 13:41:40 +0100 |
commit | 8b6b3ff28a3406f8360920db5818ab321981c645 (patch) | |
tree | c4fe29030a6e653ab123110ef0d090a23021882a | |
parent | 4a3dc2cea2d6da10e3a1d1dfd62276db35d35323 (diff) | |
download | mpd-8b6b3ff28a3406f8360920db5818ab321981c645.tar.gz mpd-8b6b3ff28a3406f8360920db5818ab321981c645.tar.xz mpd-8b6b3ff28a3406f8360920db5818ab321981c645.zip |
neighbor/Glue: fix rollback range
-rw-r--r-- | src/neighbor/Glue.cxx | 2 |
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; } |