Fix hang on faploader api mimatch cancel

This commit is contained in:
Willy-JL
2023-07-21 03:00:23 +01:00
parent 273bb30b10
commit 7c536be3d3

View File

@@ -465,6 +465,13 @@ static LoaderStatus loader_start_external_app(
dialog_message_free(message);
furi_record_close(RECORD_DIALOGS);
if(res != DialogMessageButtonRight) {
const char* err_msg = flipper_application_preload_status_to_string(preload_res);
status = loader_make_status_error(
LoaderStatusErrorAppStarted,
error_message,
"Preload failed, %s: %s",
path,
err_msg);
break;
}
}