fix conference record race
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10723 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
351a3c4a11
commit
0534d8e92d
|
@ -885,6 +885,12 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
|
|||
switch_mutex_unlock(globals.hash_mutex);
|
||||
|
||||
if (conference->auto_record) {
|
||||
uint32_t sanity = 100;
|
||||
|
||||
while (!conference->members && --sanity) {
|
||||
switch_yield(100000);
|
||||
}
|
||||
|
||||
imember = conference->members;
|
||||
if (imember) {
|
||||
switch_channel_t *channel = switch_core_session_get_channel(imember->session);
|
||||
|
|
Loading…
Reference in New Issue