aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Transfers
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-05 09:12:04 -0500
committerJP Dillingham <jp@dillingham.me>2026-10-05 09:12:04 -0500
commit85d99db5f390af5df211101fa83ce256bb16ba95 (patch)
tree75670f8559f14edd6d3a7dcb2946e433732796cf /src/slskd/Transfers
parentb38d9f01862b4fc27874bf99d4b24b53a6577bd0 (diff)
downloadslskd-85d99db5f390af5df211101fa83ce256bb16ba95.tar.gz
run continuations async
Diffstat (limited to 'src/slskd/Transfers')
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs
index 30f3c9b1..cb9423bc 100644
--- a/src/slskd/Transfers/Downloads/DownloadService.cs
+++ b/src/slskd/Transfers/Downloads/DownloadService.cs
@@ -509,7 +509,7 @@ namespace slskd.Transfers.Downloads
add this to the dictionary before inserting the record, so we are guaranteed to have it
in the right place once the transfer hits the UI
*/
- var enqueuedTcs = new TaskCompletionSource<Transfer>();
+ var enqueuedTcs = new TaskCompletionSource<Transfer>(TaskCreationOptions.RunContinuationsAsynchronously);
// satisfies condition #3; CancellationTokenSource set cancelled by the user (via API call)
var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);