Shutdown ExecutorService after using it

This commit is contained in:
George Gastaldi
2019-12-10 09:27:18 -03:00
committed by Guillaume Smet
parent 8e66a93f8f
commit 45a5bef943

View File

@@ -362,7 +362,7 @@ public class QuarkusDev extends QuarkusTask {
try {
ExecutorService es = Executors.newSingleThreadExecutor();
es.submit(() -> copyOutputToConsole(p.getInputStream()));
es.shutdown();
p.waitFor();
} catch (Exception e) {
p.destroy();