fix formatting and update summary
This commit is contained in:
parent
e1190d15d6
commit
ace89e4597
|
@ -404,7 +404,7 @@ namespace Emby.Server.Implementations.Session
|
||||||
session.LastPlaybackCheckIn = DateTime.UtcNow;
|
session.LastPlaybackCheckIn = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.IsPaused && session.LastPausedDate.HasValue == false)
|
if (info.IsPaused && session.LastPausedDate is null)
|
||||||
{
|
{
|
||||||
session.LastPausedDate = DateTime.UtcNow;
|
session.LastPausedDate = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
|
@ -656,9 +656,10 @@ namespace Emby.Server.Implementations.Session
|
||||||
private async void CheckForInactiveSteams(object state)
|
private async void CheckForInactiveSteams(object state)
|
||||||
{
|
{
|
||||||
var pausedSessions = Sessions.Where(i =>
|
var pausedSessions = Sessions.Where(i =>
|
||||||
(i.NowPlayingItem is not null) &&
|
i.NowPlayingItem is not null
|
||||||
(i.PlayState.IsPaused == true) &&
|
&& i.PlayState.IsPaused
|
||||||
(i.LastPausedDate is not null)).ToList();
|
&& i.LastPausedDate is not null)
|
||||||
|
.ToList();
|
||||||
|
|
||||||
if (pausedSessions.Count > 0)
|
if (pausedSessions.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -159,8 +159,9 @@ namespace MediaBrowser.Model.Configuration
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the threshold in minutes after a inactive session gets closed automatically.
|
/// 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>
|
/// </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;
|
public int InactiveSessionThreshold { get; set; } = 10;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user