mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Fix another case of swallowed errors not shutting down mods.
This commit is contained in:
1 parent
7592bbe87e
commit
e62805f1d7
2 files changed
+3
-3
No files matched your search
@@ -132,7 +132,7 @@ public class ModList
|
||||
DeferredWorkQueue.clear();
|
||||
try
|
||||
{
|
||||
final ForkJoinTask<?> parallelTask = modLoadingThreadPool.submit(() -> this.mods.parallelStream().forEach(m -> m.transitionState(lifecycleEvent, errorHandler)));
|
||||
final ForkJoinTask<?> parallelTask = modLoadingThreadPool.submit(() -> this.mods.parallelStream().forEach(m -> m.transitionState(lifecycleEvent, errorHandler.andThen(e -> this.mods.forEach(ModContainer::shutdown)))));
|
||||
while (ticker != null && !parallelTask.isDone()) {
|
||||
executor.execute(ticker);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user