Pārlūkot izejas kodu

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

Nikolay Nikolov 1 gadu atpakaļ
vecāks
revīzija
74a4550ff0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      rtl/wasi/tthread.inc

+ 1 - 1
rtl/wasi/tthread.inc

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