fix aws race condition when 2 start transcribes are sent at the same instant

This commit is contained in:
Dave Horton
2024-03-11 13:57:15 -04:00
parent 92dd3fc854
commit 06ab877f68

View File

@@ -326,8 +326,8 @@ static void *SWITCH_THREAD_FUNC aws_transcribe_thread(switch_thread_t *thread, v
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "transcribe_thread: Error allocating streamer\n");
return nullptr;
}
if (!cb->vad) pStreamer->connect();
cb->streamer = pStreamer;
if (!cb->vad) pStreamer->connect();
pStreamer->processData(); //blocks until done
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "transcribe_thread: stopping cb %p\n", (void *) cb);