Sfoglia il codice sorgente

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

Cauê Waneck 11 anni fa
parent
commit
df45237db3
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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);
 	}
 }