Fixed countdown
This commit is contained in:
parent
0eb19e8c3f
commit
463433ef45
|
@ -374,10 +374,10 @@ class Server<C extends Connection> extends EndPointServer {
|
||||||
// now WAIT until bind has released the socket
|
// now WAIT until bind has released the socket
|
||||||
// wait a max of 10 tries
|
// wait a max of 10 tries
|
||||||
int tries = 10;
|
int tries = 10;
|
||||||
while (tries-- >= 0 && isRunning(this.config)) {
|
while (tries-- > 0 && isRunning(this.config)) {
|
||||||
logger.warn("Server has requested shutdown, but the socket is still bound. Waiting {} more times", tries);
|
logger.warn("Server has requested shutdown, but the socket is still bound. Waiting {} more times", tries);
|
||||||
try {
|
try {
|
||||||
Thread.sleep(1000);
|
Thread.sleep(2000);
|
||||||
} catch (InterruptedException ignored) {
|
} catch (InterruptedException ignored) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user