neighbor/Glue: fix rollback range
This commit is contained in:
parent
4a3dc2cea2
commit
8b6b3ff28a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user