neighbor/Glue: fix rollback range

This commit is contained in:
Max Kellermann 2014-01-26 13:41:31 +01:00
parent 4a3dc2cea2
commit 8b6b3ff28a

View File

@ -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;
}