提交 33b78057 authored 作者: Chris Rienzo's avatar Chris Rienzo

mod_rayo: fixed prompt state machine - wrong state transition when output…

mod_rayo: fixed prompt state machine - wrong state transition when output finishes before input starts
上级 3c6ba5d0
...@@ -454,7 +454,8 @@ static iks *prompt_component_handle_output_complete(struct rayo_actor *prompt, s ...@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论