aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session/SessionManager.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-05-28 14:21:26 -0400
committerPatrick Barron <barronpm@gmail.com>2020-05-28 14:21:26 -0400
commit8ca78f33e9769f823fe079e90b62b561646709d7 (patch)
tree7574380fac7f21bcf7dd21a18452203a0525e8d7 /Emby.Server.Implementations/Session/SessionManager.cs
parentd1164979123a03c5f591dc04a4809adc695d0ae0 (diff)
Fix bug when migrating user db with users that have never logged in.
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
-rw-r--r--Emby.Server.Implementations/Session/SessionManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs
index 70b3bda6e..94423c287 100644
--- a/Emby.Server.Implementations/Session/SessionManager.cs
+++ b/Emby.Server.Implementations/Session/SessionManager.cs
@@ -282,7 +282,7 @@ namespace Emby.Server.Implementations.Session
if (user != null)
{
- var userLastActivityDate = user.LastActivityDate;
+ var userLastActivityDate = user.LastActivityDate ?? DateTime.MinValue;
user.LastActivityDate = activityDate;
if ((activityDate - userLastActivityDate).TotalSeconds > 60)