Skip to content

Commit

Permalink
Web session read fix (use copy to avoid ConcurrentModificationException)
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rider committed May 27, 2024
1 parent 407259b commit 965d96c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public void expireIdleSessions() {

public Collection<BaseWebSession> getAllActiveSessions() {
synchronized (sessionMap) {
return sessionMap.values();
return new ArrayList<>(sessionMap.values());
}
}

Expand Down

0 comments on commit 965d96c

Please sign in to comment.