The Free Software Media System - Server Backend & API
fix formatting and update summary
herby2212ace89e45976a
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.csindex 056c3e4b61..14a62626c5 100644--- a/Emby.Server.Implementations/Session/SessionManager.cs+++ b/Emby.Server.Implementations/Session/SessionManager.cs@@ -404,7 +404,7 @@ namespace Emby.Server.Implementations.Sessionsession.LastPlaybackCheckIn = DateTime.UtcNow;}- if (info.IsPaused && session.LastPausedDate.HasValue == false)+ if (info.IsPaused && session.LastPausedDate is null){session.LastPausedDate = DateTime.UtcNow;}@@ -656,9 +656,10 @@ namespace Emby.Server.Implementations.Sessionprivate async void CheckForInactiveSteams(object state){var pausedSessions = Sessions.Where(i =>- (i.NowPlayingItem is not null) &&- (i.PlayState.IsPaused == true) &&- (i.LastPausedDate is not null)).ToList();+ i.NowPlayingItem is not null+ && i.PlayState.IsPaused+ && i.LastPausedDate is not null)+ .ToList();if (pausedSessions.Count > 0){diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.csindex f619f384c6..40dcf50b75 100644--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs@@ -159,8 +159,9 @@ namespace MediaBrowser.Model.Configuration/// <summary>/// Gets or sets the threshold in minutes after a inactive session gets closed automatically.+ /// If set to 0 the check for inactive sessions gets disabled./// </summary>- /// <value>The close inactive session threshold in minutes.</value>+ /// <value>The close inactive session threshold in minutes. 0 to disable.</value>public int InactiveSessionThreshold { get; set; } = 10;/// <summary>