Add missing makePortable() call.

I guess I simply never tested that case.
This commit is contained in:
player-03
2023-12-16 15:23:39 -05:00
committed by GitHub
parent aec341d481
commit c62ef3eb4a

View File

@@ -77,6 +77,13 @@ import lime.utils.Log;
var promise = new Promise<T>();
promise.future = this;
#if (lime_threads && html5)
if (useThreads)
{
work.makePortable();
}
#end
FutureWork.run(dispatchWorkFunction, work, promise, useThreads ? MULTI_THREADED : SINGLE_THREADED, true);
}
}