diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-02-03 22:23:54 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-03 22:23:54 -0500 |
| commit | c4f51e16a5ba093f32e8c87b8ccd49efc4a27757 (patch) | |
| tree | ef797491c45d8eaafa3f8993836593bdc2e20983 /Emby.Server.Implementations/EntryPoints/RecordingNotifier.cs | |
| parent | 56dcc45dc04de6be775551f14d1ad0bb235d72f9 (diff) | |
| parent | 85a58fd655240fd0ddd10bdaaad4a9bb8cd7051d (diff) | |
Merge pull request #736 from Bond-009/startasync
Start startup tasks async
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/RecordingNotifier.cs')
| -rw-r--r-- | Emby.Server.Implementations/EntryPoints/RecordingNotifier.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/RecordingNotifier.cs b/Emby.Server.Implementations/EntryPoints/RecordingNotifier.cs index e37ea96a1..0186da9e1 100644 --- a/Emby.Server.Implementations/EntryPoints/RecordingNotifier.cs +++ b/Emby.Server.Implementations/EntryPoints/RecordingNotifier.cs @@ -1,6 +1,7 @@ using System; using System.Linq; using System.Threading; +using System.Threading.Tasks; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.LiveTv; using MediaBrowser.Controller.Plugins; @@ -24,12 +25,14 @@ namespace Emby.Server.Implementations.EntryPoints _liveTvManager = liveTvManager; } - public void Run() + public Task RunAsync() { _liveTvManager.TimerCancelled += _liveTvManager_TimerCancelled; _liveTvManager.SeriesTimerCancelled += _liveTvManager_SeriesTimerCancelled; _liveTvManager.TimerCreated += _liveTvManager_TimerCreated; _liveTvManager.SeriesTimerCreated += _liveTvManager_SeriesTimerCreated; + + return Task.CompletedTask; } private void _liveTvManager_SeriesTimerCreated(object sender, MediaBrowser.Model.Events.GenericEventArgs<TimerEventInfo> e) |
