aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs4
-rw-r--r--src/slskd/Transfers/Uploads/UploadService.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs
index ea543ce6..542c4344 100644
--- a/src/slskd/Transfers/Downloads/DownloadService.cs
+++ b/src/slskd/Transfers/Downloads/DownloadService.cs
@@ -1,4 +1,4 @@
-// <copyright file="DownloadService.cs" company="slskd Team">
+// <copyright file="DownloadService.cs" company="slskd Team">
// Copyright (c) slskd Team. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
@@ -152,7 +152,7 @@ namespace slskd.Transfers.Downloads
// return and let the caller know.
var downloadTask = Task.Run(async () =>
{
- using var rateLimiter = new RateLimiter(250);
+ using var rateLimiter = new RateLimiter(250, flushOnDispose: true);
try
{
diff --git a/src/slskd/Transfers/Uploads/UploadService.cs b/src/slskd/Transfers/Uploads/UploadService.cs
index 180c5699..278672f1 100644
--- a/src/slskd/Transfers/Uploads/UploadService.cs
+++ b/src/slskd/Transfers/Uploads/UploadService.cs
@@ -1,4 +1,4 @@
-// <copyright file="UploadService.cs" company="slskd Team">
+// <copyright file="UploadService.cs" company="slskd Team">
// Copyright (c) slskd Team. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
@@ -162,7 +162,7 @@ namespace slskd.Transfers.Uploads
// uploads would be handled separately.
_ = Task.Run(async () =>
{
- using var rateLimiter = new RateLimiter(250);
+ using var rateLimiter = new RateLimiter(250, flushOnDispose: true);
try
{