Merge pull request #6038 from crobibero/delete-existing-sessions

Don't logout if deviceId is null

(cherry picked from commit 1594385497fb7f8e7d12169db34c64821c73864f)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
Claus Vium 2021-05-24 08:43:44 +02:00 committed by Joshua M. Boniface
parent 49873c3d7f
commit d2db73b876

View File

@ -1543,6 +1543,8 @@ namespace Emby.Server.Implementations.Session
Limit = 1
}).Items.FirstOrDefault();
if (!string.IsNullOrEmpty(deviceId))
{
var allExistingForDevice = _authRepo.Get(
new AuthenticationInfoQuery
{
@ -1563,6 +1565,7 @@ namespace Emby.Server.Implementations.Session
}
}
}
}
if (existing != null)
{