Command Equality ignores properties defined in Command

pull/2/head
Mark McDowall 11 years ago
parent 4b5d03ac94
commit 742a21252c

@ -26,6 +26,11 @@ namespace NzbDrone.Core.Messaging.Commands
continue;
}
if (xProperty.DeclaringType == typeof (Command))
{
continue;
}
var yProperty = yProperties.Single(p => p.Name == xProperty.Name);
var xValue = xProperty.GetValue(x, null);

@ -58,8 +58,7 @@ namespace NzbDrone.Core.Messaging.Commands.Tracking
public Command FindExisting(Command command)
{
return RunningCommands().Where(c => c.GetType() == command.GetType())
.SingleOrDefault(t => CommandEqualityComparer.Instance.Equals(t, command));
return RunningCommands().SingleOrDefault(t => CommandEqualityComparer.Instance.Equals(t, command));
}
public void Store(Command command)

Loading…
Cancel
Save