aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Relay/RelayService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-01-19 21:31:08 -0600
committerJP Dillingham <jp@dillingham.me>2026-01-19 21:31:08 -0600
commit8df8159530a3446b528b1e4c2960cd19f577275f (patch)
tree05a555671a711d398162604c857ceda952afe130 /src/slskd/Relay/RelayService.cs
parent6fdc317978fd91fbfd5828ee72c7e7f19c316b13 (diff)
downloadslskd-8df8159530a3446b528b1e4c2960cd19f577275f.tar.gz
include agentName when completing agent GetFileStreamAsync
Diffstat (limited to 'src/slskd/Relay/RelayService.cs')
-rw-r--r--src/slskd/Relay/RelayService.cs8
1 files changed, 5 insertions, 3 deletions
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
/// <summary>
/// Notifies the caller of <see cref="GetFileStreamAsync"/> of a failure to obtain a file stream from the requested agent.
/// </summary>
+ /// <param name="agentName">The name of the agent.</param>
/// <param name="id">The unique ID for the stream.</param>
/// <param name="exception">The remote exception that caused the failure.</param>
- void NotifyFileStreamException(Guid id, Exception exception);
+ void NotifyFileStreamException(string agentName, Guid id, Exception exception);
/// <summary>
/// Registers the specified <paramref name="agent"/> with the specified <paramref name="connectionId"/>.
@@ -656,11 +657,12 @@ namespace slskd.Relay
/// <summary>
/// Notifies the caller of <see cref="GetFileStreamAsync"/> of a failure to obtain a file stream from the requested agent.
/// </summary>
+ /// <param name="agentName">The name of the agent.</param>
/// <param name="id">The unique ID for the stream.</param>
/// <param name="exception">The remote exception that caused the failure.</param>
- 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);
}