diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-01-27 15:40:37 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-01-27 15:40:37 +0100 |
| commit | 85a58fd655240fd0ddd10bdaaad4a9bb8cd7051d (patch) | |
| tree | 9cbbefe37ef4a293a42fe9f419809e4b2156f4ea /Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs | |
| parent | ee89236fe8e8fbb94969e228df98b9fc6f3ecd77 (diff) | |
Start startup tasks async
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs')
| -rw-r--r-- | Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs b/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs index 2c8246d13..5b90dc1fb 100644 --- a/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs +++ b/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs @@ -1,4 +1,5 @@ using System; +using System.Threading.Tasks; using Emby.Server.Implementations.Udp; using MediaBrowser.Controller; using MediaBrowser.Controller.Plugins; @@ -43,7 +44,7 @@ namespace Emby.Server.Implementations.EntryPoints /// <summary> /// Runs this instance. /// </summary> - public void Run() + public Task RunAsync() { var udpServer = new UdpServer(_logger, _appHost, _json, _socketFactory); @@ -57,6 +58,8 @@ namespace Emby.Server.Implementations.EntryPoints { _logger.LogError(ex, "Failed to start UDP Server"); } + + return Task.CompletedTask; } /// <summary> |
