Don't check control file existence if isPreLocalFileCheckEnabled() == false

pull/28/head
Tatsuhiro Tsujikawa 2012-08-31 23:40:32 +09:00
parent 0bbda43385
commit b336725ca0
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ SharedHandle<CheckIntegrityEntry> RequestGroup::createCheckIntegrityEntry()
// infoFile exists.
loadAndOpenFile(infoFile);
checkEntry.reset(new StreamCheckIntegrityEntry(this));
} else if(infoFile->exists()) {
} else if(isPreLocalFileCheckEnabled() && infoFile->exists()) {
loadAndOpenFile(infoFile);
if(downloadFinished()) {
#ifdef ENABLE_MESSAGE_DIGEST