mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
signalR connection is now called directly rather than using a command to reduce overhead.
This commit is contained in:
@@ -102,9 +102,6 @@ namespace NzbDrone.Core.Jobs
|
||||
|
||||
public void Handle(CommandExecutedEvent message)
|
||||
{
|
||||
if (message.Command.GetType().Name == "BroadcastSignalRMessage")
|
||||
return;
|
||||
|
||||
var scheduledTask = _scheduledTaskRepository.All().SingleOrDefault(c => c.TypeName == message.Command.GetType().FullName);
|
||||
|
||||
if (scheduledTask != null)
|
||||
@@ -122,7 +119,7 @@ namespace NzbDrone.Core.Jobs
|
||||
var downloadedEpisodes = _scheduledTaskRepository.GetDefinition(typeof(DownloadedEpisodesScanCommand));
|
||||
downloadedEpisodes.Interval = _configService.DownloadedEpisodesScanInterval;
|
||||
|
||||
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask>{ rss, downloadedEpisodes });
|
||||
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, downloadedEpisodes });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user