2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-04-16 20:00:25 +00:00

Make sure we don't spuriously empty caches.

This commit is contained in:
Tux
2015-12-14 17:37:13 -05:00
parent 7ee37ae4cb
commit 020341590f
2 changed files with 14 additions and 2 deletions

View File

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