]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
forgot this spot when closing speech channel
authorChristopher Rienzo <chris@rienzo.net>
Fri, 4 Feb 2011 20:18:33 +0000 (20:18 +0000)
committerChristopher Rienzo <chris@rienzo.net>
Fri, 4 Feb 2011 20:18:33 +0000 (20:18 +0000)
src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c

index 812744c2ec469214b1e84bc571cf9043981ad58b..734ef21e293453a8a9b82100d064cf3f9748ecdd 100644 (file)
@@ -1362,6 +1362,8 @@ static switch_status_t speech_channel_stop(speech_channel_t *schannel)
                        goto done;
                }
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "(%s) %s stopped\n", schannel->name, speech_channel_type_to_string(schannel->type));
+       } else if (schannel->state == SPEECH_CHANNEL_DONE) {
+               speech_channel_set_state(schannel, SPEECH_CHANNEL_READY);
        }
 
   done: