ping servers more often with higher wait times
This commit is contained in:
@@ -52,7 +52,7 @@ public class TaskManager {
|
||||
updateTask = scheduleAtFixedRate(updateExecutor,
|
||||
main.getQueueManager()::updateServers,
|
||||
500L,
|
||||
(long) (Math.max(main.getTimeBetweenPlayers(), 2)*1000L),
|
||||
(long) (Math.max(main.getTimeBetweenPlayers()/2, 2)*1000L),
|
||||
TimeUnit.MILLISECONDS
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user