diff --git a/src/kernel/KernelEvents.hx b/src/kernel/KernelEvents.hx index 6c10a13..ef4534e 100644 --- a/src/kernel/KernelEvents.hx +++ b/src/kernel/KernelEvents.hx @@ -154,7 +154,7 @@ class KernelEvents { private static function turtleLoop() { startTurtleCoroutine(); - while (true) { + while (!stopLoop) { var eventData = pullEvents(); if (eventData[1] == "turtle_response" || eventData[1] == "tthread") {