aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-29 21:29:38 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-29 21:29:38 -0400
commit3733ebd21e0a3b9c6ef0fd2e5c0cac4d53b50a40 (patch)
tree9fcdd8e6b9846c6ac4c4d4277e387e2441910a96 /MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs
parentf7deec40d05de8efc3959a2be5c7b278ec4d826b (diff)
updated nuget
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs b/MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs
index a91dbbe4c..e1f00951e 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs
@@ -25,7 +25,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
/// <value>The web socket.</value>
private System.Net.WebSockets.WebSocket WebSocket { get; set; }
- private CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource();
+ private readonly CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource();
/// <summary>
/// Initializes a new instance of the <see cref="NativeWebSocket" /> class.
@@ -168,7 +168,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
if (dispose)
{
_cancellationTokenSource.Cancel();
- _cancellationTokenSource.Dispose();
WebSocket.Dispose();
}