Subject.doAs(loginContext.getSubject(), new PrivilegedAction<Void>() {
@Override
public Void run() {
+ // TODO rather loop here, until there is an auth change
if (!display.readAndDispatch()) {
+ // TODO update UI last access here
display.sleep();
}
return null;
continue eventLoop;
}
}
+ if (serverPushSession != null)
+ serverPushSession.stop();
if (!display.isDisposed())
display.dispose();
}