This commit is contained in:
mcrcortex
2024-08-07 02:01:22 +10:00
parent 323cd95bff
commit 395112fc40

View File

@@ -112,7 +112,13 @@ public class WorldImporter {
public void shutdown() { public void shutdown() {
this.isRunning = false; this.isRunning = false;
try {this.worker.join();} catch (InterruptedException e) {throw new RuntimeException(e);} if (this.worker != null) {
try {
this.worker.join();
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
this.threadPool.shutdown(); this.threadPool.shutdown();
} }