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

pull/158/head
Drewster727 9 years ago
parent 456e442fa3
commit 5d1c1baae8

@ -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);
}

Loading…
Cancel
Save