Quellcode durchsuchen

Add sanity check for ThrottleDelaySeconds

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
nyanmisaka vor 1 Jahr
Ursprung
Commit
55fd6b5cb9
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      MediaBrowser.Controller/MediaEncoding/TranscodingThrottler.cs

+ 1 - 1
MediaBrowser.Controller/MediaEncoding/TranscodingThrottler.cs

@@ -115,7 +115,7 @@ public class TranscodingThrottler : IDisposable
 
         var options = GetOptions();
 
-        if (options.EnableThrottling && IsThrottleAllowed(_job, options.ThrottleDelaySeconds))
+        if (options.EnableThrottling && IsThrottleAllowed(_job, Math.Max(options.ThrottleDelaySeconds, 60)))
         {
             await PauseTranscoding().ConfigureAwait(false);
         }