Author: anthm Date: Thu Dec 11 18:39:16 2008 New Revision: 10723 Log: fix conference record race Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c (original) +++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c Thu Dec 11 18:39:16 2008 @@ -885,6 +885,12 @@ 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);