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
This commit is contained in:
Thomas Martitz 2009-07-06 00:07:25 +00:00
parent f4c31ae309
commit 9e05a2f5b0

View file

@ -537,6 +537,7 @@ int start_shuffled_play(void)
enum plugin_status main_menu(void) enum plugin_status main_menu(void)
{ {
bool exit = false;
MENUITEM_STRINGLIST(menu, "Main Menu", NULL, MENUITEM_STRINGLIST(menu, "Main Menu", NULL,
"Generate Folder List", "Generate Folder List",
"Edit Folder List", "Edit Folder List",
@ -545,7 +546,7 @@ enum plugin_status main_menu(void)
"Play Shuffled", "Play Shuffled",
"Quit"); "Quit");
while (true) while (!exit)
{ {
switch (rb->do_menu(&menu, NULL, NULL, false)) switch (rb->do_menu(&menu, NULL, NULL, false))
{ {
@ -567,7 +568,7 @@ enum plugin_status main_menu(void)
rb->cpu_boost(true); rb->cpu_boost(true);
#endif #endif
if (edit_list() < 0) if (edit_list() < 0)
return PLUGIN_OK; exit = true;
#ifdef HAVE_ADJUSTABLE_CPU_FREQ #ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false); rb->cpu_boost(false);
#endif #endif
@ -611,6 +612,7 @@ enum plugin_status main_menu(void)
return PLUGIN_OK; return PLUGIN_OK;
} }
} }
return PLUGIN_OK;
} }
enum plugin_status plugin_start(const void* parameter) enum plugin_status plugin_start(const void* parameter)