pull/722/head
TikiWong 2022-01-27 14:29:59 +08:00
parent 6941b984be
commit c9614bd77c
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ public class UserCacheManager {
public void expel() {
long now = System.currentTimeMillis();
if (cache.size() < minEvictableSize ||
now < nextMinEvictableTime &&
!expelLock.compareAndSet(true, false)) {
now < nextMinEvictableTime ||
!expelLock.compareAndSet(true, false)) {
return;
}
long oldestTime = now;