From 9e05a2f5b090b16c58c18d00e5d5c30b170083be Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 6 Jul 2009 00:07:25 +0000 Subject: [PATCH] Fix returning too early (before cleanup) in RFAC, which led to not cancelling boosting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21682 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/random_folder_advance_config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c index 2d3959ac1f..28546a340c 100644 --- a/apps/plugins/random_folder_advance_config.c +++ b/apps/plugins/random_folder_advance_config.c @@ -537,6 +537,7 @@ int start_shuffled_play(void) enum plugin_status main_menu(void) { + bool exit = false; MENUITEM_STRINGLIST(menu, "Main Menu", NULL, "Generate Folder List", "Edit Folder List", @@ -545,7 +546,7 @@ enum plugin_status main_menu(void) "Play Shuffled", "Quit"); - while (true) + while (!exit) { switch (rb->do_menu(&menu, NULL, NULL, false)) { @@ -567,7 +568,7 @@ enum plugin_status main_menu(void) rb->cpu_boost(true); #endif if (edit_list() < 0) - return PLUGIN_OK; + exit = true; #ifdef HAVE_ADJUSTABLE_CPU_FREQ rb->cpu_boost(false); #endif @@ -611,6 +612,7 @@ enum plugin_status main_menu(void) return PLUGIN_OK; } } + return PLUGIN_OK; } enum plugin_status plugin_start(const void* parameter)