From 80223c548c43acabf07a581393ea45e7f165eeef Mon Sep 17 00:00:00 2001 From: Patrick Barron Date: Sat, 2 Oct 2021 14:03:47 -0400 Subject: [PATCH] Fix warnings in WebSocketConnection --- .../HttpServer/WebSocketConnection.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs index 7010a6fb0..5f25f6980 100644 --- a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs +++ b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs @@ -96,7 +96,7 @@ namespace Emby.Server.Implementations.HttpServer /// /// Sends a message asynchronously. /// - /// + /// The type of the message. /// The message. /// The cancellation token. /// Task. @@ -150,8 +150,8 @@ namespace Emby.Server.Implementations.HttpServer { await ProcessInternal(pipe.Reader).ConfigureAwait(false); } - } while ( - (_socket.State == WebSocketState.Open || _socket.State == WebSocketState.Connecting) + } + while ((_socket.State == WebSocketState.Open || _socket.State == WebSocketState.Connecting) && receiveresult.MessageType != WebSocketMessageType.Close); Closed?.Invoke(this, EventArgs.Empty);