Skip to content

Commit

Permalink
Closes #2344
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Jun 26, 2021
1 parent c72f265 commit e824607
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions ArchiSteamFarm/Core/ASF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,6 @@ internal static async Task RestartOrExit() {
ArchiLogger.LogGenericInfo(string.Format(CultureInfo.CurrentCulture, Strings.UpdateVersionInfo, SharedInfo.Version, newVersion));

if (SharedInfo.Version >= newVersion) {
if (SharedInfo.Version > newVersion) {
ArchiLogger.LogGenericWarning(Strings.WarningPreReleaseVersion);
await Task.Delay(15 * 1000).ConfigureAwait(false);
}

return newVersion;
}

Expand Down Expand Up @@ -898,7 +893,16 @@ private static async Task UpdateAndRestart() {

Version? newVersion = await Update().ConfigureAwait(false);

if ((newVersion == null) || (newVersion <= SharedInfo.Version)) {
if (newVersion == null) {
return;
}

if (SharedInfo.Version >= newVersion) {
if (SharedInfo.Version > newVersion) {
ArchiLogger.LogGenericWarning(Strings.WarningPreReleaseVersion);
await Task.Delay(15 * 1000).ConfigureAwait(false);
}

return;
}

Expand Down

0 comments on commit e824607

Please sign in to comment.