also stop turtle main loop on exit

This commit is contained in:
Niklas Kapelle 2024-01-21 20:20:59 +01:00
parent 762f72c160
commit 3e09bcfad2
Signed by: niklas
GPG Key ID: 4EB651B36D841D16

View File

@ -154,7 +154,7 @@ class KernelEvents {
private static function turtleLoop() { private static function turtleLoop() {
startTurtleCoroutine(); startTurtleCoroutine();
while (true) { while (!stopLoop) {
var eventData = pullEvents(); var eventData = pullEvents();
if (eventData[1] == "turtle_response" || eventData[1] == "tthread") { if (eventData[1] == "turtle_response" || eventData[1] == "tthread") {