Skip to content

Commit

Permalink
Minimal Fix auth code cleanup function
Browse files Browse the repository at this point in the history
  • Loading branch information
strehle committed Apr 28, 2023
1 parent 53d8340 commit 37c5f22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected void performExpirationClean() {
Instant now = Instant.now();
if (enoughTimeHasPassedSinceLastExpirationClean(last, now)) {
//avoid concurrent deletes from the same UAA - performance improvement
if (lastClean.compareAndSet(last, last.plus(getExpirationTime()))) {
if (lastClean.compareAndSet(last, now)) {
try {
JdbcTemplate template = new JdbcTemplate(dataSource);
int expired = template.update(SQL_EXPIRE_STATEMENT, now.toEpochMilli());
Expand Down

0 comments on commit 37c5f22

Please sign in to comment.