Browse Source

relocated Dispose

Luke Brown 2 years ago
parent
commit
9e31d5a73f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Emby.Server.Implementations/HttpServer/WebSocketConnection.cs

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

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