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

Freeswitch SVN anthm at freeswitch.org
Tue Oct 3 14:02:24 EDT 2006


Author: anthm
Date: Tue Oct  3 14:02:23 2006
New Revision: 2966

Modified:
   freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c

Log:
umm, yeah, when it's dynamic, and there are no members, let's go ahead and ummmm exit the thread, mmmkay?

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	Tue Oct  3 14:02:23 2006
@@ -413,7 +413,8 @@
 	conference->count--;
 	member->conference = NULL;
 
-	if (conference->min && switch_test_flag(conference, CFLAG_ENFORCE_MIN) && conference->count < conference->min) {
+	if ((conference->min && switch_test_flag(conference, CFLAG_ENFORCE_MIN) && conference->count < conference->min) 
+		|| (switch_test_flag(conference, CFLAG_DYNAMIC) && conference->count == 0) ) {
 		switch_set_flag(conference, CFLAG_DESTRUCT);
 	} else { 
 		if (conference->exit_sound) {



More information about the Freeswitch-svn mailing list