Use cache to check for running or started commands

This commit is contained in:
Mark McDowall 2015-03-25 16:46:41 -07:00
parent 210524b51a
commit 755a42ea45
2 changed files with 15 additions and 4 deletions

View file

@ -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