Skip to content

Commit

Permalink
Minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Oct 11, 2024
1 parent 2f10144 commit ac46a0d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public void close() {
}

public int checkSessionsValidity() {
if (sessions.isEmpty())
return 0;

return executeInWriteLock(() -> {
int expired = 0;
Map.Entry<String, HttpSession> s;
Expand Down

0 comments on commit ac46a0d

Please sign in to comment.