#3220: Fix server list info being cached permanently

This commit is contained in:
Valtn 2021-12-04 16:04:26 -05:00 committed by GitHub
parent a9d75c5255
commit 42d8300bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}