diff --git a/libs/core/linux.cpp b/libs/core/linux.cpp index 24f69d5b..22ab7aa3 100644 --- a/libs/core/linux.cpp +++ b/libs/core/linux.cpp @@ -272,7 +272,8 @@ void setupThread(Action a, TValue arg = 0, void (*runner)(Thread *) = NULL, TVal } void releaseFiber() { - // called from main in pxt.cpp + stopUser(); + pthread_exit(NULL); } void runInParallel(Action a) {