Skip to content

Commit

Permalink
Add support for easier modification of server session logout behaviour
Browse files Browse the repository at this point in the history
375938
  • Loading branch information
brunokoeferli committed Feb 29, 2024
1 parent f9698ad commit c3cf9fb
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010-2023 BSI Business Systems Integration AG.
* Copyright (c) 2010-2024 BSI Business Systems Integration AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -272,9 +272,7 @@ protected void cancelRunningJobs() {

protected void inactivateSession() {
try {
BEANS
.optional(ILogoutService.class)
.ifPresent(ILogoutService::logout);
logoutSession();
}
finally {
m_active = false;
Expand All @@ -285,6 +283,12 @@ protected void inactivateSession() {
}
}

protected void logoutSession() {
BEANS
.optional(ILogoutService.class)
.ifPresent(ILogoutService::logout);
}

@Override
public IFastListenerList<ISessionListener> sessionListeners() {
return m_eventListeners;
Expand Down

0 comments on commit c3cf9fb

Please sign in to comment.