[mod_conference] file descriptor stays open

Solution: don't even start to play file if conference is not running.

Co-authored-by: Ruslan Andronov <randronov@outlook.com>
This commit is contained in:
Ruslan 2022-08-23 17:07:55 +02:00 committed by GitHub
parent db3dd53aa6
commit a8dee4b2ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -164,6 +164,11 @@ switch_status_t conference_file_play(conference_obj_t *conference, char *file, u
switch_assert(conference != NULL);
if (!conference_utils_test_flag(conference, CFLAG_RUNNING)) {
return SWITCH_STATUS_FALSE;
}
if (zstr(file)) {
return SWITCH_STATUS_NOTFOUND;
}