From 4b8ad5b54930ecfd8d4f4fc0d213f85b7174f9f8 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Mon, 16 Sep 2013 20:13:26 -0400 Subject: [PATCH] mod_rayo: fixed prompt state machine - wrong state transition when output finishes before input starts --- src/mod/event_handlers/mod_rayo/rayo_prompt_component.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c b/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c index f48e7d02d2..7bb530fe3f 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c @@ -454,7 +454,8 @@ static iks *prompt_component_handle_output_complete(struct rayo_actor *prompt, s iks_delete(PROMPT_COMPONENT(prompt)->iq); break; 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; case PCS_INPUT_OUTPUT: PROMPT_COMPONENT(prompt)->state = PCS_INPUT;