From 0161f679599ce12bddb61ea5961a80ac98a38106 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 28 Sep 2013 17:16:36 -0400 Subject: [PATCH] better disposal of alchemy server --- MediaBrowser.Server.Implementations/WebSocket/AlchemyServer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MediaBrowser.Server.Implementations/WebSocket/AlchemyServer.cs b/MediaBrowser.Server.Implementations/WebSocket/AlchemyServer.cs index 1470a209e..fc445ec9d 100644 --- a/MediaBrowser.Server.Implementations/WebSocket/AlchemyServer.cs +++ b/MediaBrowser.Server.Implementations/WebSocket/AlchemyServer.cs @@ -123,7 +123,9 @@ namespace MediaBrowser.Server.Implementations.WebSocket { if (WebSocketServer != null) { + WebSocketServer.Stop(); WebSocketServer.Dispose(); + WebSocketServer = null; } } }