From 60520cdb16f8a01ed753ee1905053d9ec99a9950 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 27 Nov 2025 19:14:20 -0600 Subject: add missing interface method --- src/slskd/Transfers/Downloads/DownloadService.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs index 9d0a8ed9..bb4c5417 100644 --- a/src/slskd/Transfers/Downloads/DownloadService.cs +++ b/src/slskd/Transfers/Downloads/DownloadService.cs @@ -107,6 +107,20 @@ namespace slskd.Transfers.Downloads /// A value indicating whether the download was successfully cancelled. bool TryCancel(Guid id); + /// + /// Fails the download matching the specified with the specified , + /// and sets the final state accordingly. + /// + /// + /// This method is designed to be idempotent, meaning subsequent calls for a given transfer shouldn't change + /// the EndedAt or Exception properties if they have already been set. If the transfer State already includes + /// the terminal Completed flag, it is unchanged. + /// + /// The unique identifier for the download. + /// The exception that caused the failure. + /// A value indicating whether the download was successfully failed. + bool TryFail(Guid id, Exception exception); + /// /// Updates the specified . /// -- cgit v1.2.3