Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
#371: wait for direct rename completion before direct unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
hugbug committed May 22, 2017
1 parent 6c09bd4 commit 511c583
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daemon/postprocess/PrePostProcessor.cpp
Expand Up @@ -945,7 +945,8 @@ void PrePostProcessor::FileDownloaded(DownloadQueue* downloadQueue, NzbInfo* nzb

if (g_Options->GetDirectUnpack())
{
if (nzbInfo->GetDirectUnpackStatus() == NzbInfo::nsNone)
if (nzbInfo->GetDirectUnpackStatus() == NzbInfo::nsNone &&
nzbInfo->GetDirectRenameStatus() != NzbInfo::tsRunning)
{
NzbParameter* unpackParameter = nzbInfo->GetParameters()->Find("*Unpack:", false);
bool wantUnpack = !(unpackParameter && !strcasecmp(unpackParameter->GetValue(), "no"));
Expand Down

0 comments on commit 511c583

Please sign in to comment.