[DEV] updfate wait end of system

This commit is contained in:
Edouard DUPIN 2023-11-12 21:47:06 +01:00
parent c928624734
commit a135ff746d

View File

@ -152,10 +152,20 @@ public class WebLauncher {
e.printStackTrace();
}
}
public void stop() {
if (this.server != null) {
this.server.shutdownNow();
while (this.server.isStarted()) {
LOGGER.info("wait stop");
try {
Thread.sleep(200);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
this.server = null;
}
}