mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Fixed: Updates to commandExecutingSelector
This commit is contained in:
parent
68aaa49e9f
commit
e41f884153
16 changed files with 57 additions and 73 deletions
|
@ -79,15 +79,9 @@ namespace Lidarr.Api.V1.Commands
|
|||
{
|
||||
_pendingUpdates[message.Command.Id] = message.Command.ToResource();
|
||||
}
|
||||
|
||||
_debouncer.Execute();
|
||||
}
|
||||
|
||||
if (message.Command.Name == typeof(MessagingCleanupCommand).Name.Replace("Command", "") &&
|
||||
message.Command.Status == CommandStatus.Completed)
|
||||
{
|
||||
BroadcastResourceChange(ModelAction.Sync);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void SendUpdates()
|
||||
|
@ -100,6 +94,12 @@ namespace Lidarr.Api.V1.Commands
|
|||
foreach (var pendingUpdate in pendingUpdates)
|
||||
{
|
||||
BroadcastResourceChange(ModelAction.Updated, pendingUpdate);
|
||||
|
||||
if (pendingUpdate.Name == typeof(MessagingCleanupCommand).Name.Replace("Command", "") &&
|
||||
pendingUpdate.Status == CommandStatus.Completed)
|
||||
{
|
||||
BroadcastResourceChange(ModelAction.Sync);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue