mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
Prevent ProgressMessageTarget from ever reading the command from the database.
This commit is contained in:
@@ -69,9 +69,9 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||
_commandQueueManager.Start(commandModel);
|
||||
BroadcastCommandUpdate(commandModel);
|
||||
|
||||
if (!MappedDiagnosticsContext.Contains("CommandId"))
|
||||
if (ProgressMessageContext.CommandModel == null)
|
||||
{
|
||||
MappedDiagnosticsContext.Set("CommandId", commandModel.Id.ToString());
|
||||
ProgressMessageContext.CommandModel = commandModel;
|
||||
}
|
||||
|
||||
handler.Execute(command);
|
||||
@@ -96,9 +96,9 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||
|
||||
_eventAggregator.PublishEvent(new CommandExecutedEvent(commandModel));
|
||||
|
||||
if (MappedDiagnosticsContext.Get("CommandId") == commandModel.Id.ToString())
|
||||
if (ProgressMessageContext.CommandModel == commandModel)
|
||||
{
|
||||
MappedDiagnosticsContext.Remove("CommandId");
|
||||
ProgressMessageContext.CommandModel = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user