mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
fix exit not exiting in standalone mode
This commit is contained in:
@@ -1528,8 +1528,13 @@ void EMSESP::loop() {
|
||||
if (system_.telnet_enabled()) {
|
||||
telnet_.loop();
|
||||
}
|
||||
#else
|
||||
if (!shell_->running()) {
|
||||
::exit(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Shell::loop_all();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user