From 740a10a4e3f85ffcfd26ec18263d4c78d4b14ecc Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 10 Sep 2013 14:56:00 -0400 Subject: de-normalize item by name data. create counts during library scan for fast access. --- MediaBrowser.Server.Implementations/Session/SessionManager.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Session/SessionManager.cs') diff --git a/MediaBrowser.Server.Implementations/Session/SessionManager.cs b/MediaBrowser.Server.Implementations/Session/SessionManager.cs index 4ba0a22ee..bf5ae498b 100644 --- a/MediaBrowser.Server.Implementations/Session/SessionManager.cs +++ b/MediaBrowser.Server.Implementations/Session/SessionManager.cs @@ -85,11 +85,6 @@ namespace MediaBrowser.Server.Implementations.Session get { return _activeConnections.Values.OrderByDescending(c => c.LastActivityDate).ToList(); } } - /// - /// The _true task result - /// - private readonly Task _trueTaskResult = Task.FromResult(true); - /// /// Logs the user activity. /// @@ -339,6 +334,7 @@ namespace MediaBrowser.Server.Implementations.Session // If the client isn't able to report this, then we'll just have to make an assumption data.PlayCount++; data.Played = true; + data.PlaybackPositionTicks = 0; } await _userDataRepository.SaveUserData(user.Id, key, data, CancellationToken.None).ConfigureAwait(false); -- cgit v1.2.3