diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-09-05 15:49:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-05 15:49:26 -0400 |
| commit | 5116b175ce4a1f3a54c64c6f8fa8e8fba1a69e1a (patch) | |
| tree | ce6784069ed4cb412c917dc1e3d884c56dea2654 /Emby.Server.Implementations/Session | |
| parent | 637795aaf5e203d3a5a98cf9caa742663d0ee14e (diff) | |
| parent | 49b799adbe3d65973b136bee758584748ecf6c2a (diff) | |
Merge pull request #2866 from MediaBrowser/dev
3.2.30.8
Diffstat (limited to 'Emby.Server.Implementations/Session')
3 files changed, 3 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/Session/HttpSessionController.cs b/Emby.Server.Implementations/Session/HttpSessionController.cs index dbac76bb4..bd53da1bd 100644 --- a/Emby.Server.Implementations/Session/HttpSessionController.cs +++ b/Emby.Server.Implementations/Session/HttpSessionController.cs @@ -14,7 +14,7 @@ using System.Threading.Tasks; namespace Emby.Server.Implementations.Session { - public class HttpSessionController : ISessionController, IDisposable + public class HttpSessionController : ISessionController { private readonly IHttpClient _httpClient; private readonly IJsonSerializer _json; @@ -195,9 +195,5 @@ namespace Emby.Server.Implementations.Session return "?" + args; } - - public void Dispose() - { - } } } diff --git a/Emby.Server.Implementations/Session/SessionWebSocketListener.cs b/Emby.Server.Implementations/Session/SessionWebSocketListener.cs index 2735bb237..a5af843db 100644 --- a/Emby.Server.Implementations/Session/SessionWebSocketListener.cs +++ b/Emby.Server.Implementations/Session/SessionWebSocketListener.cs @@ -102,6 +102,7 @@ namespace Emby.Server.Implementations.Session public void Dispose() { _serverManager.WebSocketConnected -= _serverManager_WebSocketConnected; + GC.SuppressFinalize(this); } /// <summary> diff --git a/Emby.Server.Implementations/Session/WebSocketController.cs b/Emby.Server.Implementations/Session/WebSocketController.cs index f0ff0b5dd..ee9ee8969 100644 --- a/Emby.Server.Implementations/Session/WebSocketController.cs +++ b/Emby.Server.Implementations/Session/WebSocketController.cs @@ -283,6 +283,7 @@ namespace Emby.Server.Implementations.Session { socket.Closed -= connection_Closed; } + GC.SuppressFinalize(this); } } } |
