commit | 0a2a2b0c7f41b155432115e1153adce26f45edc2 | [log] [tgz] |
---|---|---|
author | Inga Stotland <inga.stotland@intel.com> | Mon Mar 26 09:57:04 2018 -0700 |
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Tue Mar 27 13:59:16 2018 +0300 |
tree | cb32b69e9a9bb450650f0aa9eaba01bdcd7e85d6 | |
parent | 62168ef6e12925fa42407f4d888cc140a085d7b8 [diff] |
mesh/meshctl: Exit cleanly if start up fails This addresses the following issue: if the program exits after bt_shell_init() has been called, but prior to calling bt_shell_run() (e.g., failing to start meshctl due to invalid input configuration), the original shell is messed up after that. Calling bt_shell_cleanup() on faiure fixes this.