Improve UI lifecycle
[lgpl/argeo-commons.git] / org.argeo.osgi.boot / src / org / argeo / osgi / boot / OsgiBuilder.java
index 3dfe486d094816220b5cf448901a42bc91264849..81315cf4ede73dc542fa389330f3cb3ac7b21c06 100644 (file)
@@ -159,6 +159,12 @@ public class OsgiBuilder {
                        e.printStackTrace();
                        System.exit(1);
                }
+               try {
+                       framework.waitForStop(10 * 60 * 1000);
+               } catch (InterruptedException e) {
+                       e.printStackTrace();
+                       System.exit(1);
+               }
                System.exit(0);
        }