mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix close shell in native build #1966
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user