From 946a7679ee106a446c0a38a8e9bd836fd5ee2e01 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Sat, 10 Aug 2024 01:55:58 +0800 Subject: [PATCH] I'm an idiot, forgot to null the cookies --- KfChatDotNetBot/Services/Rainbet.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/KfChatDotNetBot/Services/Rainbet.cs b/KfChatDotNetBot/Services/Rainbet.cs index d929a14..7622dc8 100644 --- a/KfChatDotNetBot/Services/Rainbet.cs +++ b/KfChatDotNetBot/Services/Rainbet.cs @@ -108,6 +108,7 @@ public class Rainbet : IDisposable if (response.Headers.Contains("cf-mitigated")) { _logger.Error("Hit a Cloudflare challenge, cookies expired? Marking cookies as null so it'll refresh next time we run"); + _cookies = null; throw new Exception("Cloudflare challenged"); } var bets = await response.Content.ReadFromJsonAsync>(cancellationToken: _cancellationToken);