Ensure CLI is closed when update is done

This commit is contained in:
comp500 2019-08-30 13:57:43 +01:00
parent 79a983bc2f
commit dbdd1fb9f3

View File

@ -442,6 +442,9 @@ public class UpdateManager {
} }
} }
// Shut down the thread pool when the update is done
threadPool.shutdown();
List<IExceptionDetails> failedTasks2ElectricBoogaloo = nonFailedFirstTasks.stream().filter(t -> t.getException() != null).collect(Collectors.toList()); List<IExceptionDetails> failedTasks2ElectricBoogaloo = nonFailedFirstTasks.stream().filter(t -> t.getException() != null).collect(Collectors.toList());
if (!failedTasks2ElectricBoogaloo.isEmpty()) { if (!failedTasks2ElectricBoogaloo.isEmpty()) {
errorsOccurred = true; errorsOccurred = true;