Переглянути джерело

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

Cauê Waneck 11 роки тому
батько
коміт
df45237db3
1 змінених файлів з 1 додано та 0 видалено
  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();
 		threadObject = hxThread;
 		runFunction = run;
+		setDaemon(true);
 	}
 }