fixed: par-checking should not be started on deleting of collections from queue

This commit is contained in:
Andrey Prygunkov
2008-01-05 16:20:22 +00:00
parent 1d294f5037
commit f79bdab2cd
2 changed files with 13 additions and 2 deletions

View File

@@ -189,9 +189,17 @@ void PrePostProcessor::QueueCoordinatorUpdate(Subject * Caller, void * Aspect)
{
char szNZBNiceName[1024];
pAspect->pFileInfo->GetNiceNZBName(szNZBNiceName, 1024);
info("Collection %s completely downloaded", szNZBNiceName);
if (pAspect->eAction == QueueCoordinator::eaFileCompleted)
{
info("Collection %s completely downloaded", szNZBNiceName);
}
else
{
info("Collection %s deleted from queue", szNZBNiceName);
}
#ifndef DISABLE_PARCHECK
if (g_pOptions->GetParCheck())
if (g_pOptions->GetParCheck() &&
pAspect->eAction == QueueCoordinator::eaFileCompleted)
{
CheckPars(pAspect->pDownloadQueue, pAspect->pFileInfo);
}