#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" );
|
Preconditions.checkNotNull( callback, "callback" );
|
||||||
|
|
||||||
int pingCache = ProxyServer.getInstance().getConfig().getRemotePingCache();
|
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;
|
cachedPing = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user