diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli-cmd.c | 3 | ||||
-rw-r--r-- | cli/src/cli.c | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/cli/src/cli-cmd.c b/cli/src/cli-cmd.c index ee30ea996..b4967d2cc 100644 --- a/cli/src/cli-cmd.c +++ b/cli/src/cli-cmd.c @@ -248,10 +248,9 @@ cli_cmd_await_connected () int32_t cli_cmd_broadcast_connected () { - connected = 1; - gf_log ("", GF_LOG_NORMAL, "Connected"); pthread_mutex_lock (&conn_mutex); { + connected = 1; pthread_cond_broadcast (&conn); } diff --git a/cli/src/cli.c b/cli/src/cli.c index 59782b42d..31305b05d 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -519,12 +519,11 @@ main (int argc, char *argv[]) if (ret) goto out; - - ret = cli_input_init (&state); + ret = cli_cmd_cond_init (); if (ret) goto out; - ret = cli_cmd_cond_init (); + ret = cli_input_init (&state); if (ret) goto out; |