|
|
|
@ -174,6 +174,10 @@ namespace MediaBrowser.Server.Implementations.Session
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task ReportSessionEnded(Guid sessionId)
|
|
|
|
|
{
|
|
|
|
|
await _sessionLock.WaitAsync(CancellationToken.None).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var session = GetSession(sessionId);
|
|
|
|
|
|
|
|
|
@ -184,10 +188,6 @@ namespace MediaBrowser.Server.Implementations.Session
|
|
|
|
|
|
|
|
|
|
var key = GetSessionKey(session.Client, session.ApplicationVersion, session.DeviceId);
|
|
|
|
|
|
|
|
|
|
await _sessionLock.WaitAsync(CancellationToken.None).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
SessionInfo removed;
|
|
|
|
|
|
|
|
|
|
if (_activeConnections.TryRemove(key, out removed))
|
|
|
|
|