Skip to content

Commit 11e11e3

Browse files
committed
[Milky] Fix WebSocket failed to close properly
1 parent 2b69a03 commit 11e11e3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lagrange.Milky/Event/MilkyWebSocketEventService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ private async Task CloseConnectionAsync(ConnectionContext connection, WebSocketC
138138
_connections.Remove(connection, out _);
139139

140140
await connection.WsContext.WebSocket.CloseAsync(status, null, token);
141+
connection.HttpContext.Response.Close();
141142

142143
_logger.LogWebSocketClosed(identifier, remote);
143144
}

0 commit comments

Comments
 (0)