mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 21:42:17 +00:00
SEC-543: Moved logging out of synchronized block
This commit is contained in:
parent
9fe181046b
commit
379b7ab337
@ -161,11 +161,11 @@ public class SessionRegistryImpl implements SessionRegistry, ApplicationListener
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (logger.isDebugEnabled()) {
|
||||||
|
logger.debug("Removing session " + sessionId + " from principal's set of registered sessions");
|
||||||
|
}
|
||||||
|
|
||||||
synchronized (sessionsUsedByPrincipal) {
|
synchronized (sessionsUsedByPrincipal) {
|
||||||
if (logger.isDebugEnabled()) {
|
|
||||||
logger.debug("Removing session " + sessionId + " from principal's set of registered sessions");
|
|
||||||
}
|
|
||||||
|
|
||||||
sessionsUsedByPrincipal.remove(sessionId);
|
sessionsUsedByPrincipal.remove(sessionId);
|
||||||
|
|
||||||
if (sessionsUsedByPrincipal.size() == 0) {
|
if (sessionsUsedByPrincipal.size() == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user