Selaa lähdekoodia

add Dispose in DisposeAsyncCore

Luke Brown 2 vuotta sitten
vanhempi
sitoutus
f088ca5555
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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();
             }
         }
     }