fix exit not exiting in standalone mode

This commit is contained in:
Proddy
2023-01-30 17:04:10 +01:00
parent 7a2038e124
commit 8f68163f90
3 changed files with 8 additions and 44 deletions

View File

@@ -1528,8 +1528,13 @@ void EMSESP::loop() {
if (system_.telnet_enabled()) {
telnet_.loop();
}
#else
if (!shell_->running()) {
::exit(0);
}
#endif
Shell::loop_all();
}