Devan-Kerman / ARRP

A fabric api for creating resources and assets at runtime
Mozilla Public License 2.0
101 stars 25 forks source link

RuntimeResourcePackImpl threads do not allow the JVM process to terminate #27

Closed maityyy closed 3 years ago

maityyy commented 3 years ago

ExecutorService doesn't make deamon threads initially sad.

Fix

import com.google.common.util.concurrent.ThreadFactoryBuilder;

ThreadFactory factory = new ThreadFactoryBuilder()
        .setNameFormat("ARRP-Workers-%d")
        .setDaemon(true)
        .build();
EXECUTOR_SERVICE = Executors.newFixedThreadPool(processors, factory);
Devan-Kerman commented 3 years ago

fixed in 0.3.9