From 16b9d26ab5e52c3c72dd24f17587ca4775ff79dd Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 3 Oct 2013 14:02:23 -0400 Subject: fixes #273 - Marking/unmarking Favorite status doesn't cause a library changed notification --- MediaBrowser.ServerApplication/ApplicationHost.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MediaBrowser.ServerApplication/ApplicationHost.cs') diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs index a10b7c15b..87bd45e50 100644 --- a/MediaBrowser.ServerApplication/ApplicationHost.cs +++ b/MediaBrowser.ServerApplication/ApplicationHost.cs @@ -488,11 +488,11 @@ namespace MediaBrowser.ServerApplication { try { - await ServerManager.SendWebSocketMessageAsync("ServerRestarting", () => string.Empty, CancellationToken.None).ConfigureAwait(false); + await SessionManager.SendServerRestartNotification(CancellationToken.None).ConfigureAwait(false); } catch (Exception ex) { - Logger.ErrorException("Error sending server restart web socket message", ex); + Logger.ErrorException("Error sending server restart notification", ex); } NativeApp.Restart(); @@ -609,11 +609,11 @@ namespace MediaBrowser.ServerApplication { try { - await ServerManager.SendWebSocketMessageAsync("ServerShuttingDown", () => string.Empty, CancellationToken.None).ConfigureAwait(false); + await SessionManager.SendServerShutdownNotification(CancellationToken.None).ConfigureAwait(false); } catch (Exception ex) { - Logger.ErrorException("Error sending server shutdown web socket message", ex); + Logger.ErrorException("Error sending server shutdown notification", ex); } NativeApp.Shutdown(); -- cgit v1.2.3