Don't call downloadFailed() in queue mode

That makes a waitMsg which starts a new frame... which is the same exact problem that caused the last "random" crashing xD
Fixes #76
This commit is contained in:
Pk11
2021-03-23 04:20:52 -05:00
parent 8d0712744e
commit 5343661069
+8 -6
View File
@@ -182,12 +182,13 @@ Result ScriptUtils::downloadRelease(const std::string &repo, const std::string &
}
if (downloadFromRelease("https://github.com/" + repo, file, out, includePrereleases) != 0) {
if (isARG) showProgressBar = false;
downloadFailed();
ret = FAILED_DOWNLOAD;
if (isARG) {
showProgressBar = false;
downloadFailed();
threadJoin(thread, U64_MAX);
threadFree(thread);
}
@@ -225,12 +226,13 @@ Result ScriptUtils::downloadFile(const std::string &file, const std::string &out
}
if (downloadToFile(file, out) != 0) {
if (isARG) showProgressBar = false;
downloadFailed();
ret = FAILED_DOWNLOAD;
if (isARG) {
showProgressBar = false;
downloadFailed();
threadJoin(thread, U64_MAX);
threadFree(thread);
}