mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
Use cache to check for running or started commands
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user