mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Fixed Clashgg heartbeat so it correctly logs last bet time
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user