diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-08-01 20:26:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-01 20:26:21 +0200 |
| commit | 07727e1d63dd4623dcb03cfa2fb2db2866c920f4 (patch) | |
| tree | 6099d4314da122c8929572c5cfbaf22b871e2b82 /Emby.Server.Implementations/HttpServer/WebSocketManager.cs | |
| parent | 57b9e500c2842e02c284573dada057d6350611b3 (diff) | |
| parent | 4bb17039d70683e8a159db92823fed6d992e2fe4 (diff) | |
Merge pull request #9875 from Shadowghost/fixes
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/WebSocketManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/WebSocketManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/WebSocketManager.cs b/Emby.Server.Implementations/HttpServer/WebSocketManager.cs index ecfb242f6..52f14b0b1 100644 --- a/Emby.Server.Implementations/HttpServer/WebSocketManager.cs +++ b/Emby.Server.Implementations/HttpServer/WebSocketManager.cs @@ -51,6 +51,7 @@ namespace Emby.Server.Implementations.HttpServer using var connection = new WebSocketConnection( _loggerFactory.CreateLogger<WebSocketConnection>(), webSocket, + authorizationInfo, context.GetNormalizedRemoteIP()) { OnReceive = ProcessWebSocketMessageReceived @@ -64,7 +65,7 @@ namespace Emby.Server.Implementations.HttpServer await Task.WhenAll(tasks).ConfigureAwait(false); - await connection.ProcessAsync().ConfigureAwait(false); + await connection.ReceiveAsync().ConfigureAwait(false); _logger.LogInformation("WS {IP} closed", context.Connection.RemoteIpAddress); } catch (Exception ex) // Otherwise ASP.Net will ignore the exception |
