Skip to content

Commit 75c611d

Browse files
authored
SessionWatchdog: stream is no longer parallel because it changes map (#545)
* SessionWatchdog: stream is no longer parallel because it changes map (#545) Signed-off-by: Aleksandr Muravja <alex@kyberorg.io>
1 parent e2eaff2 commit 75c611d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/io/kyberorg/yalsee/utils/session/SessionWatchdog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public SessionWatchdog(final AppUtils appUtils) {
3737
public void endExpiredVaadinSessions() {
3838
log.debug("{} Starting Session Cleanup", TAG);
3939
//removing already invalidated sessions from list as reading their attributes leads to exceptions.
40-
SessionBox.getSessions().values().parallelStream()
40+
SessionBox.getSessions().values().stream()
4141
.filter(SessionBoxRecord::hasHttpSession)
4242
.filter(SessionBoxRecord::httpSessionAlreadyInvalidated).map(SessionBoxRecord::getSessionId)
4343
.forEach(this::removeSessionFromBox);

0 commit comments

Comments
 (0)