aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-02-03 22:23:54 -0500
committerGitHub <noreply@github.com>2019-02-03 22:23:54 -0500
commitc4f51e16a5ba093f32e8c87b8ccd49efc4a27757 (patch)
treeef797491c45d8eaafa3f8993836593bdc2e20983 /Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs
parent56dcc45dc04de6be775551f14d1ad0bb235d72f9 (diff)
parent85a58fd655240fd0ddd10bdaaad4a9bb8cd7051d (diff)
Merge pull request #736 from Bond-009/startasync
Start startup tasks async
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs')
-rw-r--r--Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs b/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs
index 0fc4c3858..361656ff2 100644
--- a/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs
+++ b/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs
@@ -37,12 +37,14 @@ namespace Emby.Server.Implementations.EntryPoints
_timerFactory = timerFactory;
}
- public void Run()
+ public Task RunAsync()
{
if (_appHost.CanSelfRestart)
{
_appHost.HasPendingRestartChanged += _appHost_HasPendingRestartChanged;
}
+
+ return Task.CompletedTask;
}
void _appHost_HasPendingRestartChanged(object sender, EventArgs e)