Ensure decompiler worker deamons are stopped after failure.
parent
d834895ff2
commit
0864e0a671
|
@ -148,8 +148,9 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask {
|
||||||
params.getClassPath().setFrom(getProject().getConfigurations().getByName(Constants.Configurations.MINECRAFT_DEPENDENCIES));
|
params.getClassPath().setFrom(getProject().getConfigurations().getByName(Constants.Configurations.MINECRAFT_DEPENDENCIES));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
try {
|
||||||
workQueue.await();
|
workQueue.await();
|
||||||
|
} finally {
|
||||||
if (useProcessIsolation()) {
|
if (useProcessIsolation()) {
|
||||||
boolean stopped = WorkerDaemonClientsManagerHelper.stopIdleJVM(getWorkerDaemonClientsManager(), jvmMarkerValue);
|
boolean stopped = WorkerDaemonClientsManagerHelper.stopIdleJVM(getWorkerDaemonClientsManager(), jvmMarkerValue);
|
||||||
|
|
||||||
|
@ -158,6 +159,7 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private WorkQueue createWorkQueue(String jvmMarkerValue) {
|
private WorkQueue createWorkQueue(String jvmMarkerValue) {
|
||||||
if (!useProcessIsolation()) {
|
if (!useProcessIsolation()) {
|
||||||
|
|
Loading…
Reference in New Issue