126885: Removed database connection leak on logout

This commit is contained in:
Alexandre Vryghem
2025-04-17 00:57:54 +02:00
parent 518fb3b1d8
commit b299a96076

View File

@@ -45,7 +45,7 @@ public class CustomLogoutHandler implements LogoutHandler {
try {
Context context = ContextUtil.obtainContext(httpServletRequest);
restAuthenticationService.invalidateAuthenticationData(httpServletRequest, httpServletResponse, context);
context.commit();
context.complete();
} catch (Exception e) {
log.error("Unable to logout", e);