From e52e0fa01f6ab8fc0f3a8c7574be8468948b3bd0 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 5 Jul 2007 15:14:00 +0000 Subject: Fixed invalid connection count --- src/CheckIntegrityCommand.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/CheckIntegrityCommand.cc') diff --git a/src/CheckIntegrityCommand.cc b/src/CheckIntegrityCommand.cc index c2e225b0..bd8354a8 100644 --- a/src/CheckIntegrityCommand.cc +++ b/src/CheckIntegrityCommand.cc @@ -61,8 +61,7 @@ bool CheckIntegrityCommand::executeInternal() return true; } if(_requestGroup->needsFileAllocation()) { - FileAllocationEntryHandle entry = new FileAllocationEntry(cuid, _entry->getCurrentRequest(), _requestGroup, _requestGroup->getExistingFileLength()); - entry->setNextDownloadCommand(_entry->popNextDownloadCommand()); + FileAllocationEntryHandle entry = new FileAllocationEntry(cuid, _entry->getCurrentRequest(), _requestGroup, _entry->popNextDownloadCommand(), _requestGroup->getExistingFileLength()); _e->_fileAllocationMan->pushFileAllocationEntry(entry); } else { if(_timer.difference() <= _e->option->getAsInt(PREF_DIRECT_DOWNLOAD_TIMEOUT) && -- cgit