From 9cafbbb18150df2ecddd78bfbdf189fd3a05a479 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 23 Feb 2018 12:39:40 +0200 Subject: [PATCH] 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. --- src/shared/shell.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/shared/shell.c b/src/shared/shell.c index f1e87d009..1fec58d17 100644 --- a/src/shared/shell.c +++ b/src/shared/shell.c @@ -966,10 +966,7 @@ bool bt_shell_attach(int fd) return true; } - if (!data.timeout) { - bt_shell_detach(); - mainloop_quit(); - } else + if (data.timeout) timeout_add(data.timeout * 1000, shell_quit, NULL, NULL); } -- 2.47.3