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

@@ -37,7 +37,7 @@ namespace ArchiSteamFarm {
private readonly ArchiLogger ArchiLogger;
internal DateTime LastPacketReceived { get; private set; } = DateTime.MinValue;
internal DateTime LastPacketReceived { get; private set; }
internal ArchiHandler(ArchiLogger archiLogger) => ArchiLogger = archiLogger ?? throw new ArgumentNullException(nameof(archiLogger));