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

Commit

Permalink
#501: fixed race condition in queue script coordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
hugbug committed Jan 29, 2018
1 parent cf0d086 commit d937690
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions daemon/extension/QueueScript.cpp
Expand Up @@ -409,11 +409,10 @@ void QueueScriptCoordinator::CheckQueue()
return;
}

m_curItem.reset();

GuardedDownloadQueue downloadQueue = DownloadQueue::Guard();
Guard guard(m_queueMutex);

m_curItem.reset();
NzbInfo* curNzbInfo = nullptr;
Queue::iterator itCurItem;

Expand Down

0 comments on commit d937690

Please sign in to comment.