From 8c345a87ef4d72d3aef2af9fc4114599d7ee0e56 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Tue, 7 Jun 2016 14:56:58 -0400 Subject: Don't reboot when CLI logout is intended. --- projects/cli-test/mgmt-cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'projects/cli-test/mgmt-cli.c') diff --git a/projects/cli-test/mgmt-cli.c b/projects/cli-test/mgmt-cli.c index 3b4ffe9..9488398 100644 --- a/projects/cli-test/mgmt-cli.c +++ b/projects/cli-test/mgmt-cli.c @@ -147,7 +147,8 @@ int embedded_cli_loop(struct cli_def *cli) continue; } - if (ctx.l < 0) break; + if (ctx.l < 0) + continue; /* cli_print(cli, "Process command: '%s'", ctx.cmd); */ n = cli_loop_process_cmd(cli, &ctx); -- cgit v1.2.3