Browse Source

add Dispose in DisposeAsyncCore

Luke Brown 2 years ago
parent
commit
f088ca5555
1 changed files with 1 additions and 0 deletions
  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();
             }
         }
     }