summaryrefslogtreecommitdiff
path: root/src/BtFileAllocationEntry.cc
diff options
context:
space:
mode:
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__