From 56d848874cb3d3e8d10f47affcd258fa56d2382f Mon Sep 17 00:00:00 2001 From: "agile.zhou" Date: Mon, 15 Apr 2024 23:44:05 +0800 Subject: [PATCH] remove unuse rows --- .../Websocket/WebsocketHandlerMiddleware.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs b/src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs index 3e543008..72c8e658 100644 --- a/src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs +++ b/src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs @@ -106,13 +106,11 @@ public async Task Invoke( { _logger.LogInformation("client {0} closed the websocket connection directly .", client.Id); await _websocketCollection.RemoveClient(client, WebSocketCloseStatus.Empty, null); - await context.Response.WriteAsync("500 closed"); } catch (Exception ex) { _logger.LogError(ex, "Handle websocket client {0} err .", client.Id); await _websocketCollection.RemoveClient(client, WebSocketCloseStatus.Empty, null); - await context.Response.WriteAsync("500 closed"); } } else