diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2017-05-20 22:19:29 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2017-05-20 22:19:29 +0900 |
| commit | 3cfea3c724f917869730b19f09f7161251aa3155 (patch) | |
| tree | 092d73f64af98b1cbe65861f7c69d2a41a12ecd1 /src/StreamFileAllocationEntry.cc | |
| parent | 8785342f8555992327f1ab0f7060c7e69dde5fd2 (diff) | |
Fix regression in bfc54d0b9a694e5d87efd8ed11b5393bc4b66f93
Don't save control file if --auto-save-interval is 0.
Diffstat (limited to 'src/StreamFileAllocationEntry.cc')
| -rw-r--r-- | src/StreamFileAllocationEntry.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |
