Fixed Clashgg heartbeat so it correctly logs last bet time

This commit is contained in:
barelyprofessional
2025-05-02 14:21:50 -05:00
parent dd0085403e
commit a12ed3a45a

View File

@@ -93,7 +93,7 @@ public class Clashgg : IDisposable
if (DateTime.Now - _lastBet <= _lastBetTolerance) continue; if (DateTime.Now - _lastBet <= _lastBetTolerance) continue;
_logger.Error("Forcing a disconnect of Clash.gg so the connection can be rebuilt " + _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"); await _wsClient.Stop(WebSocketCloseStatus.NormalClosure, "Closed due to lack of gamba");
} }
} }