Skip to content

Commit cdb8d8c

Browse files
committedAug 25, 2023
Improve robustness of initial cleanup (fixes #255)
1 parent c3ac54f commit cdb8d8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/main/java/org/fusesource/jansi/internal/JansiLoader.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ public class JansiLoader {
7272
public static synchronized boolean initialize() {
7373
// only cleanup before the first extract
7474
if (!loaded) {
75-
cleanup();
75+
Thread cleanup = new Thread(JansiLoader::cleanup, "cleanup");
76+
cleanup.setPriority(Thread.MIN_PRIORITY);
77+
cleanup.setDaemon(true);
78+
cleanup.start();
7679
}
7780
try {
7881
loadJansiNativeLibrary();

0 commit comments

Comments
 (0)
Please sign in to comment.