IDEMPIERE-5049 Zk Session and Desktop object not destroy immediately after logout (#1164)

Fix desktop doesn't timeout after access through http
This commit is contained in:
hengsin 2022-02-07 18:47:20 +08:00 committed by GitHub
parent 661550375e
commit 5a98f91a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,6 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
this.getPage().setTitle(ThemeManager.getBrowserTitle());
Executions.getCurrent().getDesktop().enableServerPush(true);
DesktopWatchDog.addDesktop(Executions.getCurrent().getDesktop());
SessionManager.setSessionApplication(this);
final Session session = Executions.getCurrent().getDesktop().getSession();

View File

@ -137,6 +137,7 @@ public class Statistic implements Monitor {
public void desktopCreated(Desktop desktop) {
_ndt.increment();
_actdt.increment();
DesktopWatchDog.addDesktop(desktop);
}
@Override