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 ta264
parent edd278a131
commit e39fee9209
5 changed files with 50 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);