]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
do not destroy conference if ghost(s) are present, add ghost count check before setti...
authorJohn Briscoe <johnb@anymeeting.com>
Tue, 26 Jul 2016 20:18:41 +0000 (13:18 -0700)
committerJohn Briscoe <johnb@anymeeting.com>
Tue, 26 Jul 2016 20:18:41 +0000 (13:18 -0700)
src/mod/applications/mod_conference/mod_conference.c

index 8f3b469517047965b9438e0e5bb102973ca4d3fd..28624d2120352d248a00e300dd659e0a468aba03 100644 (file)
@@ -2250,7 +2250,7 @@ SWITCH_STANDARD_APP(conference_function)
 
        if (conference) {
                switch_mutex_lock(conference->mutex);
-               if (conference_utils_test_flag(conference, CFLAG_DYNAMIC) && conference->count == 0) {
+               if (conference_utils_test_flag(conference, CFLAG_DYNAMIC) && conference->count == 0 && conference->count_ghosts == 0) {
                        conference_utils_set_flag_locked(conference, CFLAG_DESTRUCT);
                }
                switch_mutex_unlock(conference->mutex);