mirror of
https://github.com/nzbget/nzbget.git
synced 2026-05-24 04:34:30 -04:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user