From: Anthony Minessale Date: Tue, 3 Oct 2006 18:02:23 +0000 (+0000) Subject: umm, yeah, when it's dynamic, and there are no members, let's go ahead and ummmm... X-Git-Tag: v1.0-beta1~1963 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d80ce735649385ab248ef352245146b2974d8c38;p=thirdparty%2Ffreeswitch.git umm, yeah, when it's dynamic, and there are no members, let's go ahead and ummmm exit the thread, mmmkay? git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2966 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index b4c73242ac..a957b0f5e9 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -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) {