diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-09-24 13:59:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-24 13:59:34 -0400 |
| commit | c586fbd757b502885c0f1cb7050bf76d74b1fa37 (patch) | |
| tree | 11f7c26605ca6b3bdb3f546c4bab6224bcfe7ca0 /MediaBrowser.Server.Implementations/Session | |
| parent | 9db0cbbb44a72cda9f828fce154a24f09cf1768a (diff) | |
| parent | 48d7f686eb2212a19ee988c18c39d9fe1027d483 (diff) | |
Merge pull request #2189 from MediaBrowser/dev
update network share settings
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Session/SessionManager.cs | 6 |
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 |
