Shutdown ExecutorService after using it

This commit is contained in:
George Gastaldi
2019-12-10 09:27:18 -03:00
parent dc52545b4e
commit 58b73d3b7d

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();