Use a daemon thread for the timer.

This commit is contained in:
akwizgran
2014-01-16 19:15:33 +00:00
parent 66619ec1e7
commit 569b59624a

View File

@@ -7,7 +7,7 @@ import org.briarproject.api.system.Timer;
/** Default timer implementation. */ /** Default timer implementation. */
public class SystemTimer implements Timer { public class SystemTimer implements Timer {
private final java.util.Timer timer = new java.util.Timer(); private final java.util.Timer timer = new java.util.Timer(true);
public void cancel() { public void cancel() {
timer.cancel(); timer.cancel();