diff --git a/back/src/org/kar/karso/WebLauncher.java b/back/src/org/kar/karso/WebLauncher.java index 99aba1c..8943c2f 100755 --- a/back/src/org/kar/karso/WebLauncher.java +++ b/back/src/org/kar/karso/WebLauncher.java @@ -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; } }