[Freeswitch-svn] [commit] r10723 - freeswitch/trunk/src/mod/applications/mod_conference

FreeSWITCH SVN anthm at freeswitch.org
Thu Dec 11 15:39:16 PST 2008


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



More information about the Freeswitch-svn mailing list