Handle system clock updates

In very rare scenario of starting from time X, calculating SteamTimeDifference of Y, then changing time from X to Z, old Y difference might no longer be accurate, which could lead to temporary failure of generating tokens/confirmations for given time.
Steam accepts tokens for quite a while (15 minutes from their time IIRC), so this would only hit us if we started from really huge time gap X, and not just normal typical small max 1-2 minutes updates.
This commit is contained in:
JustArchi
2017-02-13 20:53:06 +01:00
parent fe3f72594d
commit 56983c0470
4 changed files with 29 additions and 15 deletions

View File

@@ -61,7 +61,7 @@ namespace ArchiSteamFarm {
await ASF.CheckForUpdate().ConfigureAwait(false);
await ASF.InitBots().ConfigureAwait(false);
ASF.InitFileWatcher();
ASF.InitEvents();
}
internal static void InitCore() {