Commit 8b6b3ff2 authored by Max Kellermann's avatar Max Kellermann

neighbor/Glue: fix rollback range

parent 4a3dc2ce
...@@ -81,7 +81,7 @@ NeighborGlue::Open(Error &error) ...@@ -81,7 +81,7 @@ NeighborGlue::Open(Error &error)
i != end; ++i) { i != end; ++i) {
if (!i->explorer->Open(error)) { if (!i->explorer->Open(error)) {
/* roll back */ /* roll back */
for (auto k = ++i; k != end; ++k) for (auto k = explorers.begin(); k != i; ++k)
k->explorer->Close(); k->explorer->Close();
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment