126885: Removed database connection leak on logout

(cherry picked from commit b299a96076)
This commit is contained in:
Alexandre Vryghem
2025-04-17 00:57:54 +02:00
committed by github-actions[bot]
parent 0a79903f30
commit 133c280883

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);