From 93d7a1cf20442e4a82b2819f8a5bdbe4f6c0ae97 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Mon, 4 May 2026 23:57:34 +0200 Subject: Cleanup --- Emby.Server.Implementations/HttpServer/WebSocketManager.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Emby.Server.Implementations/HttpServer/WebSocketManager.cs') diff --git a/Emby.Server.Implementations/HttpServer/WebSocketManager.cs b/Emby.Server.Implementations/HttpServer/WebSocketManager.cs index dcdfda5472..072034c4bf 100644 --- a/Emby.Server.Implementations/HttpServer/WebSocketManager.cs +++ b/Emby.Server.Implementations/HttpServer/WebSocketManager.cs @@ -48,17 +48,13 @@ namespace Emby.Server.Implementations.HttpServer _logger.LogInformation("WS {IP} request", context.Connection.RemoteIpAddress); WebSocket webSocket = await context.WebSockets.AcceptWebSocketAsync().ConfigureAwait(false); - - // Capture the culture set by RequestLocalizationMiddleware so it can be - // restored both when processing incoming messages and when periodic - // listeners produce server-initiated payloads on background tasks. var connection = new WebSocketConnection( _loggerFactory.CreateLogger(), webSocket, authorizationInfo, context.GetNormalizedRemoteIP()) { - RequestUICulture = CultureInfo.CurrentUICulture.Name + RequestUICulture = CultureInfo.CurrentUICulture }; connection.OnReceive = result => { -- cgit v1.2.3