This commit is contained in:
JustArchi
2018-11-01 02:46:24 +01:00
parent f6024f644b
commit aa27069c49

View File

@@ -119,6 +119,16 @@ namespace ArchiSteamFarm {
}
}
// TODO: cleanup from previous update, remove this after next stable
try {
foreach (string file in Directory.EnumerateFiles(SharedInfo.HomeDirectory, "*.old", SearchOption.AllDirectories)) {
File.Delete(file);
}
} catch (Exception e) {
ArchiLogger.LogGenericException(e);
return null;
}
GitHub.ReleaseResponse releaseResponse = await GitHub.GetLatestRelease(Program.GlobalConfig.UpdateChannel == GlobalConfig.EUpdateChannel.Stable).ConfigureAwait(false);
if (releaseResponse == null) {
ArchiLogger.LogGenericWarning(Strings.ErrorUpdateCheckFailed);