summaryrefslogtreecommitdiffstats
path: root/cli/src/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/input.c')
-rw-r--r--cli/src/input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/src/input.c b/cli/src/input.c
index a577a0f4c..25a7cb62d 100644
--- a/cli/src/input.c
+++ b/cli/src/input.c
@@ -41,6 +41,7 @@ cli_batch (void *d)
state = d;
+ cli_cmd_await_connected ();
ret = cli_cmd_process (state, state->argc, state->argv);
gf_log ("", GF_LOG_NORMAL, "Exiting with: %d", ret);
exit (ret);