aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Session/SessionManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-09-24 13:58:17 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-09-24 13:58:17 -0400
commit48d7f686eb2212a19ee988c18c39d9fe1027d483 (patch)
tree30e2bcb8fdb97bdd349e505fb2008ba7b3872812 /MediaBrowser.Server.Implementations/Session/SessionManager.cs
parentfdc2826709495c5313c4a61060fd420d0f8214b8 (diff)
update network share settings
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/SessionManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Session/SessionManager.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/SessionManager.cs b/MediaBrowser.Server.Implementations/Session/SessionManager.cs
index f56af5b61..48f48cdcc 100644
--- a/MediaBrowser.Server.Implementations/Session/SessionManager.cs
+++ b/MediaBrowser.Server.Implementations/Session/SessionManager.cs
@@ -294,11 +294,9 @@ namespace MediaBrowser.Server.Implementations.Session
var key = GetSessionKey(session.Client, session.DeviceId);
SessionInfo removed;
+ _activeConnections.TryRemove(key, out removed);
- if (_activeConnections.TryRemove(key, out removed))
- {
- OnSessionEnded(removed);
- }
+ OnSessionEnded(session);
}
}
finally