start the initial couchpotato cache call on a separate thread to keep the startup process quick

This commit is contained in:
Drewster727 2016-04-07 22:00:02 -05:00
commit 5d1c1baae8

View file

@ -41,6 +41,7 @@ using PlexRequests.Helpers;
using PlexRequests.Services.Interfaces;
using PlexRequests.Store;
using PlexRequests.Store.Repository;
using System.Threading.Tasks;
namespace PlexRequests.Services
{
@ -67,7 +68,7 @@ namespace PlexRequests.Services
{
UpdateSubscription?.Dispose();
CpCacher.Queued(-1);
Task.Factory.StartNew(() => CpCacher.Queued(-1));
UpdateSubscription = Observable.Interval(c.Intervals.Notification).Subscribe(CpCacher.Queued);
}