summaryrefslogtreecommitdiff
path: root/src/CheckIntegrityCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CheckIntegrityCommand.cc')
-rw-r--r--src/CheckIntegrityCommand.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CheckIntegrityCommand.cc b/src/CheckIntegrityCommand.cc
index a2d4aad1..4aac8de9 100644
--- a/src/CheckIntegrityCommand.cc
+++ b/src/CheckIntegrityCommand.cc
@@ -65,8 +65,9 @@ bool CheckIntegrityCommand::executeInternal()
_entry->updatePieceStorage();
if(_requestGroup->downloadFinished()) {
logger->notice(MSG_DOWNLOAD_ALREADY_COMPLETED, cuid, _requestGroup->getFilePath().c_str());
+ _e->addCommand(_entry->onDownloadFinished(_e));
} else {
- _e->addCommand(_entry->prepareForNextAction(_e));
+ _e->addCommand(_entry->onDownloadIncomplete(_e));
}
return true;
} else {