We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 233553d commit 6114a72Copy full SHA for 6114a72
core/src/main/java/org/mini2Dx/miniscript/core/threadpool/KavaThreadPoolProvider.java
@@ -91,9 +91,16 @@ public void shutdown(boolean interruptThreads) {
91
if (!interruptThreads) {
92
return;
93
}
94
- for (int i = 0; i < threads.length; i++) {
95
- threads[i].interrupt();
96
- }
+ new Thread(() -> {
+ for (int i = 0; i < threads.length; i++) {
+ threads[i].interrupt();
97
+
98
+ //NativeAOT workaround
99
+ try {
100
+ Thread.sleep(100);
101
+ } catch(Exception e) {}
102
+ }
103
+ }).start();
104
105
106
@Override
0 commit comments