mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-07 13:32:17 -07:00
Fixed: Memory leak in Ensure.That
This commit is contained in:
parent
f1f13e6248
commit
a7d5b3761b
15 changed files with 93 additions and 91 deletions
|
@ -33,7 +33,7 @@ namespace NzbDrone.Core.Messaging.Commands
|
|||
|
||||
public void PublishCommand<TCommand>(TCommand command) where TCommand : Command
|
||||
{
|
||||
Ensure.That(() => command).IsNotNull();
|
||||
Ensure.That(command, () => command).IsNotNull();
|
||||
|
||||
_logger.Trace("Publishing {0}", command.GetType().Name);
|
||||
|
||||
|
@ -56,7 +56,7 @@ namespace NzbDrone.Core.Messaging.Commands
|
|||
|
||||
public Command PublishCommandAsync<TCommand>(TCommand command) where TCommand : Command
|
||||
{
|
||||
Ensure.That(() => command).IsNotNull();
|
||||
Ensure.That(command, () => command).IsNotNull();
|
||||
|
||||
_logger.Trace("Publishing {0}", command.GetType().Name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue