mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
start the initial couchpotato cache call on a separate thread to keep the startup process quick
This commit is contained in:
parent
456e442fa3
commit
5d1c1baae8
1 changed files with 2 additions and 1 deletions
|
@ -41,6 +41,7 @@ using PlexRequests.Helpers;
|
||||||
using PlexRequests.Services.Interfaces;
|
using PlexRequests.Services.Interfaces;
|
||||||
using PlexRequests.Store;
|
using PlexRequests.Store;
|
||||||
using PlexRequests.Store.Repository;
|
using PlexRequests.Store.Repository;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace PlexRequests.Services
|
namespace PlexRequests.Services
|
||||||
{
|
{
|
||||||
|
@ -67,7 +68,7 @@ namespace PlexRequests.Services
|
||||||
{
|
{
|
||||||
UpdateSubscription?.Dispose();
|
UpdateSubscription?.Dispose();
|
||||||
|
|
||||||
CpCacher.Queued(-1);
|
Task.Factory.StartNew(() => CpCacher.Queued(-1));
|
||||||
UpdateSubscription = Observable.Interval(c.Intervals.Notification).Subscribe(CpCacher.Queued);
|
UpdateSubscription = Observable.Interval(c.Intervals.Notification).Subscribe(CpCacher.Queued);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue