aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Session/SessionManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-10 14:56:00 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-10 14:56:00 -0400
commit740a10a4e3f85ffcfd26ec18263d4c78d4b14ecc (patch)
tree61462d05ce44c1bb17f48e557b02e14bb480816d /MediaBrowser.Server.Implementations/Session/SessionManager.cs
parentd078edfb96fe2dcfebdc34e9189f85b0487ac242 (diff)
de-normalize item by name data. create counts during library scan for fast access.
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/SessionManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Session/SessionManager.cs6
1 files changed, 1 insertions, 5 deletions
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
@@ -86,11 +86,6 @@ namespace MediaBrowser.Server.Implementations.Session
}
/// <summary>
- /// The _true task result
- /// </summary>
- private readonly Task _trueTaskResult = Task.FromResult(true);
-
- /// <summary>
/// Logs the user activity.
/// </summary>
/// <param name="clientType">Type of the client.</param>
@@ -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);