mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
cleanup CommandId from MappedDiagnosticsContext
This commit is contained in:
parent
87da82dd90
commit
909439f615
1 changed files with 7 additions and 0 deletions
|
@ -166,6 +166,13 @@ namespace NzbDrone.Core.Messaging
|
||||||
PublishEvent(new CommandUpdatedEvent(command));
|
PublishEvent(new CommandUpdatedEvent(command));
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
if (MappedDiagnosticsContext.Get("CommandId") == command.Id.ToString())
|
||||||
|
{
|
||||||
|
MappedDiagnosticsContext.Remove("CommandId");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PublishEvent(new CommandExecutedEvent(command));
|
PublishEvent(new CommandExecutedEvent(command));
|
||||||
PublishEvent(new CommandUpdatedEvent(command));
|
PublishEvent(new CommandUpdatedEvent(command));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue