summaryrefslogtreecommitdiff
path: root/src/BtFileAllocationEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2017-03-02 22:54:11 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2017-03-02 22:54:11 +0900
commitbfc54d0b9a694e5d87efd8ed11b5393bc4b66f93 (patch)
treefde04123b650a5ac981b13506dfeeccf6036d659 /src/BtFileAllocationEntry.cc
parent9eff8100ef28ccda14161a35628c51063cf66f66 (diff)
Save control file early
Diffstat (limited to 'src/BtFileAllocationEntry.cc')
-rw-r--r--src/BtFileAllocationEntry.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/BtFileAllocationEntry.cc b/src/BtFileAllocationEntry.cc
index d173b7ce..c026e296 100644
--- a/src/BtFileAllocationEntry.cc
+++ b/src/BtFileAllocationEntry.cc
@@ -81,6 +81,13 @@ void BtFileAllocationEntry::prepareForNextAction(
std::end(fileEntries))) {
rg->createNextCommandWithAdj(commands, e, 0);
}
+
+ try {
+ rg->saveControlFile();
+ }
+ catch (RecoverableException& e) {
+ A2_LOG_ERROR_EX(EX_EXCEPTION_CAUGHT, e);
+ }
}
else {
#ifdef __MINGW32__