diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2013-03-25 10:05:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2013-03-25 10:05:58 +0000 |
commit | e9cef8bf305e93d0ec8496c8155e0fa1258b8378 (patch) | |
tree | 45392f4682a3c1d7725ab6ddf3aaa63c808d838b /cmd-source-file.c | |
parent | e85f764f230c391d072d439cf9e2bea21284c2fe (diff) | |
download | rtmux-e9cef8bf305e93d0ec8496c8155e0fa1258b8378.tar.gz rtmux-e9cef8bf305e93d0ec8496c8155e0fa1258b8378.tar.bz2 rtmux-e9cef8bf305e93d0ec8496c8155e0fa1258b8378.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 3d69a544..1bd2bb0a 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); } |