mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 09:12:25 +00:00
[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);
|
switch_assert(conference != NULL);
|
||||||
|
|
||||||
|
if (!conference_utils_test_flag(conference, CFLAG_RUNNING)) {
|
||||||
|
return SWITCH_STATUS_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (zstr(file)) {
|
if (zstr(file)) {
|
||||||
return SWITCH_STATUS_NOTFOUND;
|
return SWITCH_STATUS_NOTFOUND;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user