Explorar o código

[java] Make java Threads follow how cpp/neko implement them, and let them be killed as the program exits

Cauê Waneck %!s(int64=11) %!d(string=hai) anos
pai
achega
df45237db3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      std/java/vm/Thread.hx

+ 1 - 0
std/java/vm/Thread.hx

@@ -85,5 +85,6 @@ private class HaxeThread extends java.lang.Thread
 		super();
 		super();
 		threadObject = hxThread;
 		threadObject = hxThread;
 		runFunction = run;
 		runFunction = run;
+		setDaemon(true);
 	}
 	}
 }
 }