Просмотр исходного кода

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

Tatsuhiro Tsujikawa 13 лет назад
Родитель
Сommit
b336725ca0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/RequestGroup.cc

+ 1 - 1
src/RequestGroup.cc

@@ -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