[DEV] updfate wait end of system
This commit is contained in:
parent
c928624734
commit
a135ff746d
@ -152,10 +152,20 @@ public class WebLauncher {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void stop() {
|
public void stop() {
|
||||||
if (this.server != null) {
|
if (this.server != null) {
|
||||||
this.server.shutdownNow();
|
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;
|
this.server = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user