From 6873ae1fd4c763a01e2a252cfcadcc12f54e303b Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Thu, 15 Aug 2024 16:44:52 -0400 Subject: [PATCH] `Future.ready()` only works when threads are available. --- src/lime/app/Future.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lime/app/Future.hx b/src/lime/app/Future.hx index 8fb51d96c3..d409dced8e 100644 --- a/src/lime/app/Future.hx +++ b/src/lime/app/Future.hx @@ -201,6 +201,7 @@ import lime.utils.Log; **/ public function ready(waitTime:Int = -1):Future { + #if (lime_threads && !html5) if (isComplete || isError) { return this; @@ -221,6 +222,9 @@ import lime.utils.Log; return this; } + #else + return this; + #end } /**