diff --git a/model/sessions-infinispan/src/main/java/org/keycloak/models/sessions/infinispan/InfinispanUserSessionProvider.java b/model/sessions-infinispan/src/main/java/org/keycloak/models/sessions/infinispan/InfinispanUserSessionProvider.java index 71bac9e6e7..f865ca3d19 100755 --- a/model/sessions-infinispan/src/main/java/org/keycloak/models/sessions/infinispan/InfinispanUserSessionProvider.java +++ b/model/sessions-infinispan/src/main/java/org/keycloak/models/sessions/infinispan/InfinispanUserSessionProvider.java @@ -236,7 +236,7 @@ public class InfinispanUserSessionProvider implements UserSessionProvider { .execute(); for (String id : sessions.keySet()) { - removeUserSession(realm, getUserSession(realm, id)); + removeUserSession(realm, id); } } @@ -252,7 +252,7 @@ public class InfinispanUserSessionProvider implements UserSessionProvider { .execute(); for (String id : map.keySet()) { - removeUserSession(realm, getUserSession(realm, id)); + removeUserSession(realm, id); } map = new MapReduceTask(sessionCache) @@ -361,7 +361,7 @@ public class InfinispanUserSessionProvider implements UserSessionProvider { } } - void removeUserSession(RealmModel realm, String userSessionId) { + protected void removeUserSession(RealmModel realm, String userSessionId) { tx.remove(sessionCache, userSessionId); Map map = new MapReduceTask(sessionCache)