mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 16:13:58 -07:00
Use cache to check for running or started commands
This commit is contained in:
parent
210524b51a
commit
755a42ea45
2 changed files with 15 additions and 4 deletions
|
@ -38,7 +38,7 @@ namespace NzbDrone.Core.Messaging.Commands
|
|||
{
|
||||
try
|
||||
{
|
||||
ExecuteCommand((dynamic)command.Body, command);
|
||||
ExecuteCommand((dynamic) command.Body, command);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -51,6 +51,10 @@ namespace NzbDrone.Core.Messaging.Commands
|
|||
_logger.ErrorException(ex.Message, ex);
|
||||
Thread.ResetAbort();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error(ex.Message, ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void ExecuteCommand<TCommand>(TCommand command, CommandModel commandModel) where TCommand : Command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue