Merge pull request #2423 from cg2121/fix-launch-return

UI: Return 0 when launch cancelled or failed
This commit is contained in:
Jim 2020-02-23 00:21:21 -08:00 committed by GitHub
commit 704d2c9e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1809,7 +1809,7 @@ static int run_program(fstream &logFile, int argc, char *argv[])
}
if (cancel_launch)
ret = 0;
return 0;
if (!created_log) {
create_log_file(logFile);
@ -1847,7 +1847,7 @@ static int run_program(fstream &logFile, int argc, char *argv[])
}
if (!program.OBSInit())
ret = 0;
return 0;
prof.Stop();