From 8df8159530a3446b528b1e4c2960cd19f577275f Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 19 Jan 2026 21:31:08 -0600 Subject: include agentName when completing agent GetFileStreamAsync --- src/slskd/Relay/API/Hubs/RelayHub.cs | 2 +- src/slskd/Relay/RelayService.cs | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/slskd/Relay/API/Hubs/RelayHub.cs b/src/slskd/Relay/API/Hubs/RelayHub.cs index 333bd529..dd39583a 100644 --- a/src/slskd/Relay/API/Hubs/RelayHub.cs +++ b/src/slskd/Relay/API/Hubs/RelayHub.cs @@ -218,7 +218,7 @@ namespace slskd.Relay Log.Warning("Agent {Agent} (connection {ConnectionId}) from {IP} reported upload failure for {Id}: {Message}", record.Agent, Context.ConnectionId, RemoteIpAddress, id, exception.Message); - Relay.NotifyFileStreamException(id, exception); + Relay.NotifyFileStreamException(record.Agent.Name, id, exception); } /// diff --git a/src/slskd/Relay/RelayService.cs b/src/slskd/Relay/RelayService.cs index 7d5602a5..96eb9f74 100644 --- a/src/slskd/Relay/RelayService.cs +++ b/src/slskd/Relay/RelayService.cs @@ -190,9 +190,10 @@ namespace slskd.Relay /// /// Notifies the caller of of a failure to obtain a file stream from the requested agent. /// + /// The name of the agent. /// The unique ID for the stream. /// The remote exception that caused the failure. - void NotifyFileStreamException(Guid id, Exception exception); + void NotifyFileStreamException(string agentName, Guid id, Exception exception); /// /// Registers the specified with the specified . @@ -656,11 +657,12 @@ namespace slskd.Relay /// /// Notifies the caller of of a failure to obtain a file stream from the requested agent. /// + /// The name of the agent. /// The unique ID for the stream. /// The remote exception that caused the failure. - public void NotifyFileStreamException(Guid id, Exception exception) + public void NotifyFileStreamException(string agentName, Guid id, Exception exception) { - var key = new WaitKey(nameof(GetFileStreamAsync), id); + var key = new WaitKey(nameof(GetFileStreamAsync), agentName, id); Waiter.Throw(key, exception); } -- cgit v1.2.3