diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-08-24 22:13:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-24 22:13:33 -0500 |
| commit | bcf4cfb8880703ceb12971117d01eeed09bc85c4 (patch) | |
| tree | 25e41f60774d9c05bdd3fb06b0e5010d5aaf4900 /src/slskd/Transfers | |
| parent | dea5a615c47aa1942d98c735a750d2f395b1a374 (diff) | |
| parent | 675113541dd548240e9e950bf3faaabdc834a621 (diff) | |
| download | slskd-bcf4cfb8880703ceb12971117d01eeed09bc85c4.tar.gz | |
Merge branch 'master' into dependabot/npm_and_yarn/src/web/brace-expansion-1.1.18
Diffstat (limited to 'src/slskd/Transfers')
| -rw-r--r-- | src/slskd/Transfers/Downloads/DownloadService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs index a4d48279..30f3c9b1 100644 --- a/src/slskd/Transfers/Downloads/DownloadService.cs +++ b/src/slskd/Transfers/Downloads/DownloadService.cs @@ -550,6 +550,12 @@ namespace slskd.Transfers.Downloads { Log.Warning("Download of {Filename} from {Username} failed to enqueue remotely after hard time limit of {Duration} seconds. State transition history: {History}", transfer.Filename, username, maxTimeToWaitForEnqueueRequestAck.TotalSeconds, string.Join(", ", transitions)); enqueuedTcs.TrySetException(new TimeoutException($"Download failed to enqueue remotely after hard time limit of {maxTimeToWaitForEnqueueRequestAck.TotalSeconds} secs")); + + // cancel the download attempt so that it doesn't keep running and cause the internal + // state of slskd to diverge from the internal state of Soulseek.NET. + // the transfer record is recorded as being cancelled when this happens and there's not + // an easy/good way to stop it. + cts.Cancel(); }); // satisfies conditions #1 and #2 |
