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:
Anthony Minessale 2008-12-11 23:39:16 +00:00
parent 351a3c4a11
commit 0534d8e92d
1 changed files with 6 additions and 0 deletions

View File

@ -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);