Ver código fonte

Don't dispose the connection

Claus Vium 6 anos atrás
pai
commit
17ca23d73b

+ 2 - 1
MediaBrowser.Controller/Net/BasePeriodicWebSocketListener.cs

@@ -199,7 +199,8 @@ namespace MediaBrowser.Controller.Net
         {
         {
             Logger.LogDebug("{1} stop transmitting over websocket to {0}", connection.Item1.RemoteEndPoint, GetType().Name);
             Logger.LogDebug("{1} stop transmitting over websocket to {0}", connection.Item1.RemoteEndPoint, GetType().Name);
 
 
-            connection.Item1.Dispose();
+            // TODO disposing the connection seems to break websockets in subtle ways, so what is the purpose of this function really...
+            // connection.Item1.Dispose();
 
 
             try
             try
             {
             {