Browse Source

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

Cauê Waneck 11 years ago
parent
commit
df45237db3
1 changed files with 1 additions and 0 deletions
  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);
 	}
 }