Avoid swallowing cancelation attempts via exception handling
This commit is contained in:
parent
8facc470f0
commit
65b25e6336
@ -635,6 +635,10 @@ public class ApiService(IAuthService authService, IConfigService configService,
|
||||
|
||||
return returnUrls;
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ExceptionLoggerHelper.LogException(ex);
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using System.Globalization;
|
||||
using System.Diagnostics;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text.RegularExpressions;
|
||||
using FFmpeg.NET;
|
||||
@ -262,6 +263,10 @@ public class DownloadService(
|
||||
Constants.DrmDownloadMaxRetries, mediaId);
|
||||
return false;
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ExceptionLoggerHelper.LogException(ex);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user