aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Relay/RelayClient.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-11-14 17:33:29 -0600
committerGitHub <noreply@github.com>2026-11-14 17:33:29 -0600
commit1f4754f40005af6e1110bd00c7a7705a7203287a (patch)
tree75a0a97c55d513ae5fb3cca281f6acc406c0bdd4 /src/slskd/Relay/RelayClient.cs
parent2622c9b698fa27ebfcc7239b75334cac96b7e88a (diff)
parent3cf8cc9eafe3214431ea914772be7766d0db324a (diff)
downloadslskd-1f4754f40005af6e1110bd00c7a7705a7203287a.tar.gz
Merge pull request #1921 from slskd/object-disposed
Fix a bug causing an error when a download fails to enqueue after 180 seconds
Diffstat (limited to 'src/slskd/Relay/RelayClient.cs')
-rw-r--r--src/slskd/Relay/RelayClient.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs
index cbcde3c4..49935b4c 100644
--- a/src/slskd/Relay/RelayClient.cs
+++ b/src/slskd/Relay/RelayClient.cs
@@ -279,7 +279,7 @@ namespace slskd.Relay
// if the client is attempting a connection, cancel it it's going to be dropped when we create a new instance, but
// we need the retry loop around connection to stop.
- StartCancellationTokenSource?.Cancel();
+ StartCancellationTokenSource?.Cancel(swallowObjectDisposedException: true);
HubConnection = new HubConnectionBuilder()
.WithUrl($"{options.Relay.Controller.Address.TrimEnd('/')}/hub/relay", builder =>