Skip to content

Commit

Permalink
perform logout before requesting a new session. close #2668
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Nov 16, 2024
1 parent 92fb076 commit b47ceac
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2359,6 +2359,7 @@ public void reset() {
public void reset(boolean force) {

boolean needsBeaReset = !BeaAccess.hasInstance();
log.info("beA has instance: " + !needsBeaReset);
if (!needsBeaReset) {
try {
needsBeaReset = !BeaAccess.getInstance().isLoggedIn();
Expand All @@ -2367,8 +2368,16 @@ public void reset(boolean force) {
needsBeaReset = true;
}
}
log.info("beA reset needed: " + needsBeaReset);

if (needsBeaReset) {
try {
log.info("beA logout");
this.logout();
log.info("beA logout succeeded");
} catch (Exception ex) {
log.error("beA logout failed", ex);
}
BeaLoginDialog loginPanel = new BeaLoginDialog(EditorsRegistry.getInstance().getMainWindow(), true, this);
loginPanel.setVisible(true);
if (!BeaAccess.hasInstance()) {
Expand Down

0 comments on commit b47ceac

Please sign in to comment.