mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
#3220: Fix server list info being cached permanently
This commit is contained in:
parent
a9d75c5255
commit
42d8300bb7
@ -154,7 +154,7 @@ public class BungeeServerInfo implements ServerInfo
|
||||
Preconditions.checkNotNull( callback, "callback" );
|
||||
|
||||
int pingCache = ProxyServer.getInstance().getConfig().getRemotePingCache();
|
||||
if ( pingCache > 0 && cachedPing != null && ( lastPing - System.currentTimeMillis() ) > pingCache )
|
||||
if ( pingCache > 0 && cachedPing != null && ( System.currentTimeMillis() - lastPing ) > pingCache )
|
||||
{
|
||||
cachedPing = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user