mod_rayo: fixed prompt state machine - wrong state transition when output finishes before input starts

This commit is contained in:
Chris Rienzo 2013-09-16 20:13:26 -04:00
parent d7bce3256d
commit 4b8ad5b549
1 changed files with 2 additions and 1 deletions

View File

@ -454,7 +454,8 @@ static iks *prompt_component_handle_output_complete(struct rayo_actor *prompt, s
iks_delete(PROMPT_COMPONENT(prompt)->iq); iks_delete(PROMPT_COMPONENT(prompt)->iq);
break; break;
case PCS_START_INPUT_OUTPUT: case PCS_START_INPUT_OUTPUT:
PROMPT_COMPONENT(prompt)->state = PCS_INPUT; /* output finished before input started */
PROMPT_COMPONENT(prompt)->state = PCS_START_INPUT_TIMERS;
break; break;
case PCS_INPUT_OUTPUT: case PCS_INPUT_OUTPUT:
PROMPT_COMPONENT(prompt)->state = PCS_INPUT; PROMPT_COMPONENT(prompt)->state = PCS_INPUT;