diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-10-04 14:06:20 -0400 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2020-10-04 14:06:20 -0400 |
| commit | d0ec6872f3418a3bc6bacff6ba068526f45fc167 (patch) | |
| tree | f5f53e3d6cd242f6163586f6b5f411f2e6797dbe /Emby.Server.Implementations/Session/SessionManager.cs | |
| parent | 725acb528aab34df5cd5c6b6e552e5f5e54b7fea (diff) | |
Increase count check to 1
There's another way to disable a user anyways.
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Session/SessionManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs index cd40bda55..90363e560 100644 --- a/Emby.Server.Implementations/Session/SessionManager.cs +++ b/Emby.Server.Implementations/Session/SessionManager.cs @@ -1487,7 +1487,7 @@ namespace Emby.Server.Implementations.Session var sessionsCount = Sessions.Where(i => string.Equals(i.UserId, user.Id)).ToList().Count; int maxActiveSessions = user.MaxActiveSessions; _logger.LogInformation("Current/Max sessions for user {User}: {Sessions}/{Max}", user.Username, sessionsCount, maxActiveSessions); - if (maxActiveSessions >= 0 && sessionsCount >= maxActiveSessions) + if (maxActiveSessions >= 1 && sessionsCount >= maxActiveSessions) { throw new SecurityException("User is at their maximum number of sessions."); } |
