* WebAssembly threads: fix TThread.WaitFor (use -1 instead of 0 to signal infinite timeout)

This commit is contained in:
Nikolay Nikolov 2024-08-04 21:09:18 +03:00
parent 6be3a42a2f
commit 74a4550ff0

View File

@ -216,7 +216,7 @@ end;
function TThread.WaitFor: Integer;
begin
WaitFor:=WaitForThreadTerminate(FThreadID,0);
WaitFor:=WaitForThreadTerminate(FThreadID,-1);
end;
{$else FPC_WASM_THREADS}