Explorar el Código

add Dispose in DisposeAsyncCore

Luke Brown hace 2 años
padre
commit
f088ca5555
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Emby.Server.Implementations/HttpServer/WebSocketConnection.cs

+ 1 - 0
Emby.Server.Implementations/HttpServer/WebSocketConnection.cs

@@ -276,6 +276,7 @@ namespace Emby.Server.Implementations.HttpServer
             if (_socket.State == WebSocketState.Open)
             {
                 await _socket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "System Shutdown", CancellationToken.None).ConfigureAwait(false);
+                _socket.Dispose();
             }
         }
     }