From 58531815d016a0bba3760983e83abf5017ffdd7a Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Thu, 29 Aug 2024 07:34:26 +0200 Subject: [PATCH] fix close shell in native build #1966 --- lib/uuid-console/src/shell.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/uuid-console/src/shell.cpp b/lib/uuid-console/src/shell.cpp index 771806065..94b27887d 100644 --- a/lib/uuid-console/src/shell.cpp +++ b/lib/uuid-console/src/shell.cpp @@ -85,7 +85,11 @@ void Shell::stop() { blocking_data->stop_ = true; } else { +#if defined(EMSESP_STANDALONE) + if (running()) { +#else if (running() && !has_flags(CommandFlags::LOCAL)) { // do not close local shell +#endif stopped_ = true; stopped(); }