Ensure decompiler worker deamons are stopped after failure.
This commit is contained in:
		
							parent
							
								
									d834895ff2
								
							
						
					
					
						commit
						0864e0a671
					
				
					 1 changed files with 8 additions and 6 deletions
				
			
		|  | @ -148,13 +148,15 @@ 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)); | ||||||
| 		}); | 		}); | ||||||
| 
 | 
 | ||||||
| 		workQueue.await(); | 		try { | ||||||
|  | 			workQueue.await(); | ||||||
|  | 		} finally { | ||||||
|  | 			if (useProcessIsolation()) { | ||||||
|  | 				boolean stopped = WorkerDaemonClientsManagerHelper.stopIdleJVM(getWorkerDaemonClientsManager(), jvmMarkerValue); | ||||||
| 
 | 
 | ||||||
| 		if (useProcessIsolation()) { | 				if (!stopped) { | ||||||
| 			boolean stopped = WorkerDaemonClientsManagerHelper.stopIdleJVM(getWorkerDaemonClientsManager(), jvmMarkerValue); | 					throw new RuntimeException("Failed to stop decompile worker JVM"); | ||||||
| 
 | 				} | ||||||
| 			if (!stopped) { |  | ||||||
| 				throw new RuntimeException("Failed to stop decompile worker JVM"); |  | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue