mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 19:54:37 +00:00
Cancel workers after each command line export
This commit is contained in:
@@ -103,6 +103,7 @@ import com.jpexs.decompiler.flash.types.RECT;
|
||||
import com.jpexs.decompiler.flash.types.sound.SoundFormat;
|
||||
import com.jpexs.decompiler.flash.xfl.FLAVersion;
|
||||
import com.jpexs.decompiler.graph.CompilationException;
|
||||
import com.jpexs.helpers.CancellableWorker;
|
||||
import com.jpexs.helpers.Helper;
|
||||
import com.jpexs.helpers.Path;
|
||||
import com.jpexs.helpers.streams.SeekableInputStream;
|
||||
@@ -1312,6 +1313,7 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
swf.clearAllCache();
|
||||
CancellableWorker.cancelBackgroundThreads();
|
||||
}
|
||||
} catch (OutOfMemoryError | Exception ex) {
|
||||
System.err.print("FAIL: Exporting Failed on Exception - ");
|
||||
|
||||
Reference in New Issue
Block a user