Add TODOs related to UI development
[lgpl/argeo-commons.git] / swt / rap / org.argeo.cms.swt.rap / src / org / argeo / cms / web / CmsWebEntryPoint.java
index 2389755432e6ccc6b381543f2cbab3a3fe45cd37..d0f4d41f83d5adf06ed14d80be51271ffc4efc77 100644 (file)
@@ -276,7 +276,9 @@ public class CmsWebEntryPoint extends AbstractSwtCmsView implements EntryPoint,
                                        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;
@@ -302,6 +304,8 @@ public class CmsWebEntryPoint extends AbstractSwtCmsView implements EntryPoint,
                                        continue eventLoop;
                                }
                        }
+                       if (serverPushSession != null)
+                               serverPushSession.stop();
                        if (!display.isDisposed())
                                display.dispose();
                }