fixes #273 - Marking/unmarking Favorite status doesn't cause a library changed notification

This commit is contained in:
Luke Pulverenti
2013-10-03 14:02:23 -04:00
parent d021e20249
commit 16b9d26ab5
17 changed files with 352 additions and 22 deletions

View File

@@ -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();