kick off the schedulers once the web app has started (fixes api errors on start)

pull/158/head
Drewster727 9 years ago
parent 854bfdd479
commit 39c89647f0

@ -92,9 +92,6 @@ namespace PlexRequests.UI
s.CacheQualityProfiles(); s.CacheQualityProfiles();
ConfigureTargets(cn); ConfigureTargets(cn);
SetupSchedulers();
if (port == -1) if (port == -1)
port = GetStartupPort(); port = GetStartupPort();
@ -106,6 +103,8 @@ namespace PlexRequests.UI
{ {
using (WebApp.Start<Startup>(options)) using (WebApp.Start<Startup>(options))
{ {
SetupSchedulers();
Console.WriteLine($"Request Plex is running on the following: http://+:{port}/"); Console.WriteLine($"Request Plex is running on the following: http://+:{port}/");
if (Type.GetType("Mono.Runtime") != null) if (Type.GetType("Mono.Runtime") != null)

Loading…
Cancel
Save