Make system terminator force shutdown after 5 seconds of attempting to drop all players.
This commit is contained in:
@@ -78,7 +78,8 @@ public final class SystemTermination {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
while(!Repository.getDisconnectionQueue().isEmpty()){
|
||||
long start = System.currentTimeMillis();
|
||||
while(!Repository.getDisconnectionQueue().isEmpty() && System.currentTimeMillis() - start < 5000L){
|
||||
Repository.getDisconnectionQueue().update();
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
|
||||
Reference in New Issue
Block a user