diff options
author | nicm <nicm> | 2021-06-10 07:53:19 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-06-10 07:53:19 +0000 |
commit | 77bd6b9ec32bfbc7fbf4de09cae1ce7ea7f3ac35 (patch) | |
tree | 307984900e3f404296ca61f84e23d3c25cf46e37 | |
parent | 1bbdd2aba27057363134fa8c20c10e56ce095dea (diff) | |
download | rtmux-77bd6b9ec32bfbc7fbf4de09cae1ce7ea7f3ac35.tar.gz rtmux-77bd6b9ec32bfbc7fbf4de09cae1ce7ea7f3ac35.tar.bz2 rtmux-77bd6b9ec32bfbc7fbf4de09cae1ce7ea7f3ac35.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 b7a7abee..5509259f 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -68,7 +68,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); |