]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_conference] file descriptor stays open
authorRuslan <80762065+ruslan-voip@users.noreply.github.com>
Tue, 23 Aug 2022 15:07:55 +0000 (17:07 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Aug 2022 15:07:55 +0000 (18:07 +0300)
Solution: don't even start to play file if conference is not running.

Co-authored-by: Ruslan Andronov <randronov@outlook.com>
src/mod/applications/mod_conference/conference_file.c

index 8f0dc1d8b7c549d51668828d91e9b029164bcfea..b42599ef6d8389975a7913de710daac6a7330834 100644 (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;
        }