added the check for existense of dest-directory after reloading of post-queue and the deletion of items which can not be continued (if directory was deleted)

This commit is contained in:
Andrey Prygunkov
2008-03-23 13:59:12 +00:00
parent 8cd59b9ab5
commit 22ffd2e0bd

View File

@@ -370,9 +370,11 @@ void PrePostProcessor::SanitisePostQueue()
for (PostQueue::iterator it = m_PostQueue.begin(); it != m_PostQueue.end(); it++)
{
PostInfo* pPostInfo = *it;
if (pPostInfo->GetStage() == PostInfo::ptExecutingScript)
if (pPostInfo->GetStage() == PostInfo::ptExecutingScript ||
!Util::DirectoryExists(pPostInfo->GetDestDir()))
{
pPostInfo->SetStage(PostInfo::ptFinished);
pPostInfo->SetParCheck(false);
}
else
{