From 3227b02194842c92db4b3219ce8604e68c4bea41 Mon Sep 17 00:00:00 2001 From: John Briscoe Date: Tue, 26 Jul 2016 13:18:41 -0700 Subject: [PATCH] do not destroy conference if ghost(s) are present, add ghost count check before setting flag --- src/mod/applications/mod_conference/mod_conference.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 8f3b469517..28624d2120 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -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);