From 3cfea3c724f917869730b19f09f7161251aa3155 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 20 May 2017 22:19:29 +0900 Subject: Fix regression in bfc54d0b9a694e5d87efd8ed11b5393bc4b66f93 Don't save control file if --auto-save-interval is 0. --- src/StreamFileAllocationEntry.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/StreamFileAllocationEntry.cc') diff --git a/src/StreamFileAllocationEntry.cc b/src/StreamFileAllocationEntry.cc index 97011dd1..29e1979e 100644 --- a/src/StreamFileAllocationEntry.cc +++ b/src/StreamFileAllocationEntry.cc @@ -99,7 +99,8 @@ void StreamFileAllocationEntry::prepareForNextAction( rg->createNextCommandWithAdj(commands, e, 0); } - if (!rg->allDownloadFinished()) { + if (option->getAsInt(PREF_AUTO_SAVE_INTERVAL) != 0 && + !rg->allDownloadFinished()) { try { rg->saveControlFile(); } -- cgit