fix close shell in native build #1966

This commit is contained in:
MichaelDvP
2024-08-29 07:34:26 +02:00
parent 0c4d0d0afb
commit 58531815d0

View File

@@ -85,7 +85,11 @@ void Shell::stop() {
blocking_data->stop_ = true; blocking_data->stop_ = true;
} else { } else {
#if defined(EMSESP_STANDALONE)
if (running()) {
#else
if (running() && !has_flags(CommandFlags::LOCAL)) { // do not close local shell if (running() && !has_flags(CommandFlags::LOCAL)) { // do not close local shell
#endif
stopped_ = true; stopped_ = true;
stopped(); stopped();
} }