[commit] r2966 - freeswitch/trunk/src/mod/applications/mod_conference
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) {
participants (1)
-
Freeswitch SVN