commit | 9cafbbb18150df2ecddd78bfbdf189fd3a05a479 | [log] [tgz] |
---|---|---|
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Fri Feb 23 12:39:40 2018 +0200 |
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Wed Feb 28 16:17:13 2018 +0200 |
tree | b44f704dc859f16cacde27761e93c79ab32774f7 | |
parent | f40565d5a944527bf44998271b02ab0aca643b40 [diff] |
shared/shell: Do not quit immediatelly on noninteractive mode The command handler shall be able to tell when it is done by calling bt_shell_noninteractive_quit.
diff --git a/src/shared/shell.c b/src/shared/shell.c index f1e87d0..1fec58d 100644 --- a/src/shared/shell.c +++ b/src/shared/shell.c
@@ -966,10 +966,7 @@ return true; } - if (!data.timeout) { - bt_shell_detach(); - mainloop_quit(); - } else + if (data.timeout) timeout_add(data.timeout * 1000, shell_quit, NULL, NULL); }