Start startup tasks async

This commit is contained in:
Bond_009
2019-01-27 15:40:37 +01:00
parent ee89236fe8
commit 85a58fd655
25 changed files with 87 additions and 61 deletions

View File

@@ -124,7 +124,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
}
}
public async void Start()
public async Task Start()
{
_timerProvider.RestartTimers();

View File

@@ -1,12 +1,13 @@
using System.Threading.Tasks;
using MediaBrowser.Controller.Plugins;
namespace Emby.Server.Implementations.LiveTv.EmbyTV
{
public class EntryPoint : IServerEntryPoint
{
public void Run()
public Task RunAsync()
{
EmbyTV.Current.Start();
return EmbyTV.Current.Start();
}
public void Dispose()