Skip unknown/removed commands still queued in the database

This commit is contained in:
Taloth Saldono 2020-05-03 16:59:37 +02:00 committed by Qstick
parent 880170637e
commit 8a68042192
5 changed files with 58 additions and 3 deletions

View file

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