summaryrefslogtreecommitdiffstats
path: root/src/hci
diff options
context:
space:
mode:
Diffstat (limited to 'src/hci')
-rw-r--r--src/hci/shell.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hci/shell.c b/src/hci/shell.c
index 7bf138a2e..3860b2e40 100644
--- a/src/hci/shell.c
+++ b/src/hci/shell.c
@@ -84,8 +84,7 @@ int shell ( void ) {
rc = system ( line );
free ( line );
}
- } while ( shell_exit == 0 );
- shell_exit = 0;
+ } while ( ! shell_stopped ( SHELL_STOP_COMMAND_SEQUENCE ) );
return rc;
}