]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_rayo: fixed prompt state machine - wrong state transition when output finishes...
authorChris Rienzo <chris.rienzo@grasshopper.com>
Tue, 17 Sep 2013 00:13:26 +0000 (20:13 -0400)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Tue, 17 Sep 2013 00:13:26 +0000 (20:13 -0400)
src/mod/event_handlers/mod_rayo/rayo_prompt_component.c

index f48e7d02d29ef7c21a06ea965448699b2408bbbf..7bb530fe3f70eb91ac826d7155e0aa61b0c6341a 100644 (file)
@@ -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;