Don't keep SteamTimeDifference infinitely

With long-running systems time might run out of sync eventually.
This commit is contained in:
JustArchi
2017-12-17 11:31:42 +01:00
parent 5490ba459d
commit 319fe69088
4 changed files with 14 additions and 6 deletions

View File

@@ -39,9 +39,9 @@ namespace ArchiSteamFarm {
private readonly Bot Bot;
private readonly SemaphoreSlim RequestsSemaphore = new SemaphoreSlim(1, 1);
private DateTime LastAnnouncementCheck = DateTime.MinValue;
private DateTime LastHeartBeat = DateTime.MinValue;
private DateTime LastPersonaStateRequest = DateTime.MinValue;
private DateTime LastAnnouncementCheck;
private DateTime LastHeartBeat;
private DateTime LastPersonaStateRequest;
private bool ShouldSendHeartBeats;
internal Statistics(Bot bot) => Bot = bot ?? throw new ArgumentNullException(nameof(bot));