diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-05-12 07:08:58 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-05-12 07:08:58 +0100 |
commit | f03b27c72be01ad1934079d1b6907f94efff9dea (patch) | |
tree | a7cc23795f8ac8dd7996d28c25f96d8a47e514d8 | |
parent | 4ca6b42c241c9bb6769417ca1dc4fada521f3db8 (diff) | |
download | rtmux-f03b27c72be01ad1934079d1b6907f94efff9dea.tar.gz rtmux-f03b27c72be01ad1934079d1b6907f94efff9dea.tar.bz2 rtmux-f03b27c72be01ad1934079d1b6907f94efff9dea.zip |
Do not use NULL client when source-file finishes, GitHub issue 2707.
-rw-r--r-- | cmd-source-file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c index 1da59193..c1eeba58 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -67,7 +67,9 @@ cmd_source_file_complete(struct client *c, struct cmd_source_file_data *cdata) struct cmdq_item *new_item; if (cfg_finished) { - if (cdata->retval == CMD_RETURN_ERROR && c->session == NULL) + if (cdata->retval == CMD_RETURN_ERROR && + c != NULL && + c->session == NULL) c->retval = 1; new_item = cmdq_get_callback(cmd_source_file_complete_cb, NULL); cmdq_insert_after(cdata->after, new_item); |