mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
126885: Removed database connection leak on logout
This commit is contained in:
@@ -45,7 +45,7 @@ public class CustomLogoutHandler implements LogoutHandler {
|
|||||||
try {
|
try {
|
||||||
Context context = ContextUtil.obtainContext(httpServletRequest);
|
Context context = ContextUtil.obtainContext(httpServletRequest);
|
||||||
restAuthenticationService.invalidateAuthenticationData(httpServletRequest, httpServletResponse, context);
|
restAuthenticationService.invalidateAuthenticationData(httpServletRequest, httpServletResponse, context);
|
||||||
context.commit();
|
context.complete();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Unable to logout", e);
|
log.error("Unable to logout", e);
|
||||||
|
Reference in New Issue
Block a user