From b336725ca0c66ea971c6d858b8b3c4aa22ee1f8c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 31 Aug 2012 23:40:32 +0900 Subject: [PATCH] Don't check control file existence if isPreLocalFileCheckEnabled() == false --- src/RequestGroup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc index 1442bb50..4f55ee2e 100644 --- a/src/RequestGroup.cc +++ b/src/RequestGroup.cc @@ -234,7 +234,7 @@ SharedHandle 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