#3220: Fix server list info being cached permanently
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user