]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3043 break during mod_unimrcp can hang session
authorChristopher Rienzo <chris@rienzo.net>
Wed, 9 Feb 2011 16:53:32 +0000 (16:53 +0000)
committerChristopher Rienzo <chris@rienzo.net>
Wed, 9 Feb 2011 16:53:32 +0000 (16:53 +0000)
src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c

index 734ef21e293453a8a9b82100d064cf3f9748ecdd..d5bac5f7f4bbf6d8411f91cbea4c5e9f4edfd291 100644 (file)
@@ -1363,7 +1363,7 @@ static switch_status_t speech_channel_stop(speech_channel_t *schannel)
                }
                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);
+               speech_channel_set_state_unlocked(schannel, SPEECH_CHANNEL_READY);
        }
 
   done: