From 0534d8e92dedd171faff96f7d15f9bfcb334c8a9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 11 Dec 2008 23:39:16 +0000 Subject: [PATCH] fix conference record race git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10723 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_conference/mod_conference.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 8c434a3e40..ca4aaea8c4 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -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);