mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 02:08:08 +00:00
Fixed Cache thread as daemon
This commit is contained in:
@@ -56,7 +56,7 @@ public class Cache<K, V> implements Freed {
|
||||
|
||||
private static final long CLEAN_INTERVAL = 5 * 1000; //5 seconds
|
||||
|
||||
private static Thread oldCleaner = null;
|
||||
private static Thread oldCleaner = null;
|
||||
|
||||
static {
|
||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
||||
@@ -90,6 +90,7 @@ public class Cache<K, V> implements Freed {
|
||||
}
|
||||
}
|
||||
};
|
||||
oldCleaner.setDaemon(true);
|
||||
oldCleaner.setPriority(Thread.MIN_PRIORITY);
|
||||
oldCleaner.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user