mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Skip unknown/removed commands still queued in the database
This commit is contained in:
parent
880170637e
commit
8a68042192
5 changed files with 58 additions and 3 deletions
|
@ -69,8 +69,7 @@ namespace NzbDrone.Core.Messaging.Commands
|
|||
|
||||
try
|
||||
{
|
||||
var handlerContract = typeof(IExecute<>).MakeGenericType(command.GetType());
|
||||
handler = (IExecute<TCommand>)_serviceFactory.Build(handlerContract);
|
||||
handler = (IExecute<TCommand>)_serviceFactory.Build(typeof(IExecute<TCommand>));
|
||||
|
||||
_logger.Trace("{0} -> {1}", command.GetType().Name, handler.GetType().Name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue