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);