]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
umm, yeah, when it's dynamic, and there are no members, let's go ahead and ummmm...
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 3 Oct 2006 18:02:23 +0000 (18:02 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 3 Oct 2006 18:02:23 +0000 (18:02 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2966 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_conference/mod_conference.c

index b4c73242ac10f569db848871bb839769f54ffb2d..a957b0f5e9564b026e9903a087a43f3206cc16fd 100644 (file)
@@ -413,7 +413,8 @@ static void conference_del_member(conference_obj_t *conference, conference_membe
        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) {