diff --git a/BTCPayServer/HostedServices/BackgroundJobSchedulerHostedService.cs b/BTCPayServer/HostedServices/BackgroundJobSchedulerHostedService.cs index 852eacfa4..0dada4070 100644 --- a/BTCPayServer/HostedServices/BackgroundJobSchedulerHostedService.cs +++ b/BTCPayServer/HostedServices/BackgroundJobSchedulerHostedService.cs @@ -108,9 +108,8 @@ namespace BTCPayServer.HostedServices { await Task.WhenAll(processing).WithCancellation(cancellationToken); } - catch (Exception) when (cancellationToken.IsCancellationRequested) + catch (Exception) when (!cancellationToken.IsCancellationRequested) { - throw; } }