am ebd4613b: init: Fix init spinning once init.rc is complete

This commit is contained in:
Colin Cross 2010-04-22 14:40:40 -07:00 committed by Android Git Automerger
commit 24827fe35d
1 changed files with 2 additions and 1 deletions

View File

@ -492,6 +492,7 @@ void execute_one_command(void)
if (!cur_action || !cur_command || is_last_command(cur_action, cur_command)) {
cur_action = action_remove_queue_head();
cur_command = NULL;
if (!cur_action)
return;
INFO("processing action %p (%s)\n", cur_action, cur_action->name);
@ -762,7 +763,7 @@ int main(int argc, char **argv)
timeout = 0;
}
if (!action_queue_empty() || cur_command)
if (!action_queue_empty() || cur_action)
timeout = 0;
#if BOOTCHART