AP_Scripting: stop and restart scripting via command int

This commit is contained in:
Iampete1
2021-08-04 17:49:17 +01:00
committed by Andrew Tridgell
parent 6a46ccf019
commit b047ea5c02
3 changed files with 48 additions and 11 deletions

View File

@@ -429,7 +429,7 @@ void lua_scripts::run(void) {
succeeded_initial_load = true;
#endif // __clang_analyzer__
while (AP_Scripting::get_singleton()->enabled()) {
while (AP_Scripting::get_singleton()->should_run()) {
// handle terminal data if we have any
if (terminal.session) {
doREPL(L);