diff options
Diffstat (limited to 'src/slskd/Transfers/Downloads/DownloadService.cs')
| -rw-r--r-- | src/slskd/Transfers/Downloads/DownloadService.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs index 43a9d17c..32744fb2 100644 --- a/src/slskd/Transfers/Downloads/DownloadService.cs +++ b/src/slskd/Transfers/Downloads/DownloadService.cs @@ -1100,6 +1100,11 @@ namespace slskd.Transfers.Downloads Log.Error(ex, "Failed to update database: {Message}", ex.Message); return false; } + finally + { + CancellationTokens.TryRemove(id, out var cts); + cts?.TryDispose(); + } } /// <summary> |
