mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-12 09:30:19 -07:00
Make system terminator force shutdown after 5 seconds of attempting to drop all players.
This commit is contained in:
parent
85888178dd
commit
8d76c54ae3
1 changed files with 2 additions and 1 deletions
|
|
@ -78,7 +78,8 @@ public final class SystemTermination {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while(!Repository.getDisconnectionQueue().isEmpty()){
|
long start = System.currentTimeMillis();
|
||||||
|
while(!Repository.getDisconnectionQueue().isEmpty() && System.currentTimeMillis() - start < 5000L){
|
||||||
Repository.getDisconnectionQueue().update();
|
Repository.getDisconnectionQueue().update();
|
||||||
try {
|
try {
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue