[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:
parent
db3dd53aa6
commit
a8dee4b2ff
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue