From 719cea5f60b9d8713a4805195bf63b195f346a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 18 Nov 2022 11:14:31 +0100 Subject: [PATCH] Cleaning cache thread has low priority --- libsrc/ffdec_lib/src/com/jpexs/helpers/Cache.java | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/Cache.java b/libsrc/ffdec_lib/src/com/jpexs/helpers/Cache.java index 66aa7b6ff..b40b654f2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/Cache.java +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/Cache.java @@ -92,6 +92,7 @@ public class Cache implements Freed { } } }; + oldCleaner.setPriority(Thread.MIN_PRIORITY); oldCleaner.start(); } Cache instance = new Cache<>(weak, memoryOnly, name, temporary);