aboutsummaryrefslogtreecommitdiff
path: root/Emby.Notifications
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-01-27 15:40:37 +0100
committerBond_009 <bond.009@outlook.com>2019-01-27 15:40:37 +0100
commit85a58fd655240fd0ddd10bdaaad4a9bb8cd7051d (patch)
tree9cbbefe37ef4a293a42fe9f419809e4b2156f4ea /Emby.Notifications
parentee89236fe8e8fbb94969e228df98b9fc6f3ecd77 (diff)
Start startup tasks async
Diffstat (limited to 'Emby.Notifications')
-rw-r--r--Emby.Notifications/Notifications.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Notifications/Notifications.cs b/Emby.Notifications/Notifications.cs
index fbdc39f94..045aa6f16 100644
--- a/Emby.Notifications/Notifications.cs
+++ b/Emby.Notifications/Notifications.cs
@@ -71,12 +71,14 @@ namespace Emby.Notifications
_coreNotificationTypes = new CoreNotificationTypes(localization, appHost).GetNotificationTypes().Select(i => i.Type).ToArray();
}
- public void Run()
+ public Task RunAsync()
{
_libraryManager.ItemAdded += _libraryManager_ItemAdded;
_appHost.HasPendingRestartChanged += _appHost_HasPendingRestartChanged;
_appHost.HasUpdateAvailableChanged += _appHost_HasUpdateAvailableChanged;
_activityManager.EntryCreated += _activityManager_EntryCreated;
+
+ return Task.CompletedTask;
}
private async void _appHost_HasPendingRestartChanged(object sender, EventArgs e)