aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/WebSocketManager.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-05-04 23:57:34 +0200
committerShadowghost <Ghost_of_Stone@web.de>2026-05-12 23:18:38 +0200
commit93d7a1cf20442e4a82b2819f8a5bdbe4f6c0ae97 (patch)
tree8cca087d1f574b445b9823e9eda280928c7d0331 /Emby.Server.Implementations/HttpServer/WebSocketManager.cs
parent5cfb379aa63689435077c8f1ebc10c98f625238c (diff)
Cleanup
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/WebSocketManager.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/WebSocketManager.cs6
1 files changed, 1 insertions, 5 deletions
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<WebSocketConnection>(),
webSocket,
authorizationInfo,
context.GetNormalizedRemoteIP())
{
- RequestUICulture = CultureInfo.CurrentUICulture.Name
+ RequestUICulture = CultureInfo.CurrentUICulture
};
connection.OnReceive = result =>
{