Wait for the CPD GUI to be closed

- Fixes #4913
This commit is contained in:
Juan Martín Sotuyo Dodero 2024-04-03 12:11:32 -03:00
parent c9926fba4c
commit 9bdd5384ec

View File

@ -15,6 +15,13 @@ public class CpdGuiCommand implements Runnable {
@Override
public void run() {
new GUI();
// wait for the process to be killed by the GUI
try {
Thread.currentThread().join();
} catch (InterruptedException ignored) {
// noop
}
}
}