WaitAsync didn't like TimeSpan.MaxValue

This commit is contained in:
barelyprofessional
2026-02-08 20:21:12 -06:00
parent 2d255198ea
commit 24e864f8f5

View File

@@ -52,7 +52,7 @@ public class KiwiFlare(string kfDomain, string? proxy = null, CancellationToken?
if (!challengeData.Attributes.Contains($"data-{pow}-challenge")) throw new Exception($"data-{pow}-challenge attribute missing"); if (!challengeData.Attributes.Contains($"data-{pow}-challenge")) throw new Exception($"data-{pow}-challenge attribute missing");
if (!challengeData.Attributes.Contains($"data-{pow}-difficulty")) throw new Exception($"data-{pow}-difficulty attribute missing"); if (!challengeData.Attributes.Contains($"data-{pow}-difficulty")) throw new Exception($"data-{pow}-difficulty attribute missing");
var patience = TimeSpan.MaxValue; var patience = TimeSpan.FromMinutes(5);
// ttrs has no patience value // ttrs has no patience value
if (challengeData.Attributes.Contains("data-sssg-patience")) if (challengeData.Attributes.Contains("data-sssg-patience"))
{ {