mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2026-04-16 11:50:27 +00:00
Make sure we don't spuriously empty caches.
This commit is contained in:
@@ -64,7 +64,7 @@ public class InternalCache<K, V> {
|
||||
long fixedReference = System.currentTimeMillis();
|
||||
for (Iterator<Map.Entry<K, Holder>> it = map.entrySet().iterator(); it.hasNext(); ) {
|
||||
Map.Entry<K, Holder> entry = it.next();
|
||||
if (entry.getValue().expiry > fixedReference)
|
||||
if (entry.getValue().expiry <= fixedReference)
|
||||
it.remove();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user