diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-03-05 17:14:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-03-05 17:14:19 +0000 |
commit | 2c9cddd8760300af8d9ee6f80662f89e43a8f2ce (patch) | |
tree | cd07be0880150f8170f6092886e8248edb7fcc8b /cmd-source-file.c | |
parent | aaeee34c3250892c8a20e9c95efe66c1d0ec4be2 (diff) | |
download | rtmux-2c9cddd8760300af8d9ee6f80662f89e43a8f2ce.tar.gz rtmux-2c9cddd8760300af8d9ee6f80662f89e43a8f2ce.tar.bz2 rtmux-2c9cddd8760300af8d9ee6f80662f89e43a8f2ce.zip |
Continue the parent cmdq after sourcing a file.
Diffstat (limited to 'cmd-source-file.c')
-rw-r--r-- | cmd-source-file.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c index 2528aacf..827d4c00 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -98,10 +98,11 @@ cmd_source_file_done(struct cmd_q *cmdq1) cmdq_free(cmdq1); cfg_references--; - if (cmdq_free(cmdq) || cfg_references != 0) - return; - cmd_source_file_show(cmdq); + if (cmdq_free(cmdq)) + return; + if (cfg_references == 0) + cmd_source_file_show(cmdq); cmdq_continue(cmdq); } |