소스 검색

Add sanity check for ThrottleDelaySeconds

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
nyanmisaka 1 년 전
부모
커밋
55fd6b5cb9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
         }