diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-11-14 17:33:29 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-14 17:33:29 -0600 |
| commit | 1f4754f40005af6e1110bd00c7a7705a7203287a (patch) | |
| tree | 75a0a97c55d513ae5fb3cca281f6acc406c0bdd4 /src/slskd/Relay/RelayClient.cs | |
| parent | 2622c9b698fa27ebfcc7239b75334cac96b7e88a (diff) | |
| parent | 3cf8cc9eafe3214431ea914772be7766d0db324a (diff) | |
| download | slskd-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.cs | 2 |
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 => |
