Skip to content

Commit

Permalink
remove unuse rows
Browse files Browse the repository at this point in the history
  • Loading branch information
agile.zhou committed Apr 15, 2024
1 parent ba30b7b commit 56d8488
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56d8488

Please sign in to comment.