mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
do not close local shell #1926
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -55,6 +55,8 @@
|
||||
#include <mutex>
|
||||
#endif
|
||||
|
||||
enum CommandFlags : uint8_t { USER = 0, ADMIN = (1 << 0), LOCAL = (1 << 1) };
|
||||
|
||||
namespace uuid {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user