mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-29 03:59:06 +00:00
Fix thread switch
This commit is contained in:
@@ -55,7 +55,7 @@ public class EngineTarget {
|
||||
}
|
||||
|
||||
public void close() {
|
||||
parallaxBurster.shutdownAndAwait();
|
||||
burster.shutdownAndAwait();
|
||||
parallaxBurster.shutdownLater();
|
||||
burster.shutdownLater();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ package com.volmit.iris.engine.parallel;
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.core.IrisSettings;
|
||||
import com.volmit.iris.util.collection.KList;
|
||||
import com.volmit.iris.util.scheduling.J;
|
||||
|
||||
import java.util.concurrent.*;
|
||||
|
||||
@@ -96,6 +97,10 @@ public class MultiBurst {
|
||||
service.shutdown();
|
||||
}
|
||||
|
||||
public void shutdownLater() {
|
||||
J.a(service::shutdown, 100);
|
||||
}
|
||||
|
||||
public void shutdownAndAwait() {
|
||||
service.shutdown();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user