Explorar o código

[python] updated sys.thread.Thread according to #10501

Aleksandr Kuzmenko %!s(int64=3) %!d(string=hai) anos
pai
achega
0d49a80e0a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/python/_std/sys/thread/Thread.hx

+ 1 - 1
std/python/_std/sys/thread/Thread.hx

@@ -124,7 +124,7 @@ private class HxThread {
 			}
 			dropThread(nt);
 		}
-		nt = new NativeThread(null, wrappedCallB);
+		nt = new NativeThread({target:wrappedCallB});
 		t = new HxThread(nt);
 		if(withEventLoop)
 			t.events = new EventLoop();