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();
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user