do not close local shell #1926

This commit is contained in:
MichaelDvP
2024-08-06 14:17:53 +02:00
parent 0e8655862e
commit 0105338e29
3 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -55,6 +55,8 @@
#include <mutex>
#endif
enum CommandFlags : uint8_t { USER = 0, ADMIN = (1 << 0), LOCAL = (1 << 1) };
namespace uuid {
/**

View File

@@ -32,8 +32,6 @@
namespace emsesp {
enum CommandFlags : uint8_t { USER = 0, ADMIN = (1 << 0), LOCAL = (1 << 1) };
enum ShellContext : uint8_t { MAIN = 0, SYSTEM, END };
class EMSESP;