From a12ed3a45a5164f5c4eeeac807420695da02e31b Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Fri, 2 May 2025 14:21:50 -0500 Subject: [PATCH] Fixed Clashgg heartbeat so it correctly logs last bet time --- KfChatDotNetBot/Services/Clashgg.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KfChatDotNetBot/Services/Clashgg.cs b/KfChatDotNetBot/Services/Clashgg.cs index d475163..13ff184 100644 --- a/KfChatDotNetBot/Services/Clashgg.cs +++ b/KfChatDotNetBot/Services/Clashgg.cs @@ -93,7 +93,7 @@ public class Clashgg : IDisposable if (DateTime.Now - _lastBet <= _lastBetTolerance) continue; _logger.Error("Forcing a disconnect of Clash.gg so the connection can be rebuilt " + - $"as there's been no gambling since {DateTime.Now:o}"); + $"as there's been no gambling since {_lastBet:o}"); await _wsClient.Stop(WebSocketCloseStatus.NormalClosure, "Closed due to lack of gamba"); } }