Browse Source

* Local threadsupport variable must be set

Michael Van Canneyt 7 months ago
parent
commit
22ab77a42c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/wasi/src/wasithreadedapp.pas

+ 2 - 2
packages/wasi/src/wasithreadedapp.pas

@@ -82,8 +82,8 @@ Var
 begin
   Res:=ThreadAppWASIHost.Create(Self);
   Res.UseSharedMemory:=True;
-  Res.ThreadSupport:=CreateThreadSupport(Res.WasiEnvironment);
-
+  FThreadSupport:=CreateThreadSupport(Res.WasiEnvironment);
+  Res.ThreadSupport:=FThreadSupport;
   Result:=Res;
 end;