2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-23 04:28:01 +00:00

Fix player counts sometimes showing invalid numbers

This commit is contained in:
Tux 2015-12-06 02:44:21 -05:00
parent 8a83a525a8
commit 150fbf5600

View File

@ -54,7 +54,7 @@ public final class RedisBungee extends Plugin {
private DataManager dataManager; private DataManager dataManager;
@Getter @Getter
private static OkHttpClient httpClient; private static OkHttpClient httpClient;
private List<String> serverIds; private volatile List<String> serverIds;
private final AtomicInteger nagAboutServers = new AtomicInteger(); private final AtomicInteger nagAboutServers = new AtomicInteger();
private ScheduledTask integrityCheck; private ScheduledTask integrityCheck;
private ScheduledTask heartbeatTask; private ScheduledTask heartbeatTask;