ping servers more often with higher wait times

This commit is contained in:
ajgeiss0702
2021-08-29 07:42:50 -07:00
parent 1764a69b1c
commit af22418ccc
@@ -52,7 +52,7 @@ public class TaskManager {
updateTask = scheduleAtFixedRate(updateExecutor, updateTask = scheduleAtFixedRate(updateExecutor,
main.getQueueManager()::updateServers, main.getQueueManager()::updateServers,
500L, 500L,
(long) (Math.max(main.getTimeBetweenPlayers(), 2)*1000L), (long) (Math.max(main.getTimeBetweenPlayers()/2, 2)*1000L),
TimeUnit.MILLISECONDS TimeUnit.MILLISECONDS
); );