[vcs-log] flush when indexing ends in a finally block

This commit is contained in:
Julia Beliaeva
2017-07-26 00:38:00 +03:00
parent c172e0442e
commit 6f7834d7bf
@@ -585,6 +585,8 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable {
}
report(startTime);
flush();
}
}
@@ -631,8 +633,6 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable {
displayProgress(indicator);
});
flush();
}
public void indexAll(@NotNull ProgressIndicator indicator) throws VcsException {
@@ -647,8 +647,6 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable {
indicator.checkCanceled();
displayProgress(indicator);
});
flush();
}
public void displayProgress(@NotNull ProgressIndicator indicator) {