mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-18 07:59:14 +00:00
Fix async decompiler choking if too many classes submitted too quickly
This commit is contained in:
1 parent
987c3f5e2f
commit
76c8a8ced5
1 file changed
+2
-2
+2
-2
@@ -27,7 +27,7 @@ package org.spongepowered.asm.mixin.transformer.debug;
|
||||
import java.io.File;
|
||||
import java.lang.Thread.UncaughtExceptionHandler;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.SynchronousQueue;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
|
||||
/**
|
||||
* Asynchronous decompiler, runs mixin export task in a separate thread to avoid
|
||||
@@ -35,7 +35,7 @@ import java.util.concurrent.SynchronousQueue;
|
||||
*/
|
||||
public class RuntimeDecompilerAsync extends RuntimeDecompiler implements Runnable, UncaughtExceptionHandler {
|
||||
|
||||
private final BlockingQueue<File> queue = new SynchronousQueue<File>();
|
||||
private final BlockingQueue<File> queue = new LinkedBlockingQueue<File>();
|
||||
|
||||
private final Thread thread;
|
||||
|
||||
|
||||
Reference in new issue
Block a user