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

Don't logout if deviceId is null
This commit is contained in:
Claus Vium 2021-05-24 08:43:44 +02:00 committed by GitHub
commit 1594385497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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