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

Commit

Permalink
closes #163: queue scripts save messages into nzb-log
Browse files Browse the repository at this point in the history
  • Loading branch information
hugbug committed Feb 1, 2016
1 parent c1f5822 commit 4fbff8c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion daemon/extension/QueueScript.cpp
Expand Up @@ -213,7 +213,18 @@ void QueueScriptController::AddMessage(Message::EKind kind, const char* text)
}
else
{
ScriptController::AddMessage(kind, text);
DownloadQueue* downloadQueue = DownloadQueue::Lock();
NzbInfo* nzbInfo = downloadQueue->GetQueue()->Find(m_id);
if (nzbInfo)
{
nzbInfo->AddMessage(kind, text);
}
DownloadQueue::Unlock();

if (!nzbInfo)
{
ScriptController::AddMessage(kind, text);
}
}
}

Expand Down

0 comments on commit 4fbff8c

Please sign in to comment.