Skip to content

Commit

Permalink
Fix live-feed client removal
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMacocian committed Aug 13, 2024
1 parent 907de5c commit 09d0969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GuildWarsPartySearch/Endpoints/LiveFeed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public override async Task SocketAccepted(CancellationToken cancellationToken)

public override Task SocketClosed()
{
var ipAddress = this.Context?.Connection.RemoteIpAddress?.ToString();
var scopedLogger = this.logger.CreateScopedLogger(nameof(this.SocketAccepted), ipAddress ?? string.Empty);
var ipAddress = this.Context?.Request.HttpContext.GetClientIP();
var scopedLogger = this.logger.CreateScopedLogger(nameof(this.SocketClosed), ipAddress ?? string.Empty);
this.liveFeedService.RemoveClient(this.WebSocket!, ipAddress);
scopedLogger.LogDebug("Client removed from livefeed");
return Task.CompletedTask;
Expand Down

0 comments on commit 09d0969

Please sign in to comment.