Working multi RCP platform
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / runtime / CmsDeploymentImpl.java
index 0d53a09b090f2a33dedf5e500e5c164593675a54..d3f4b575aa7ff6486f5708a7fbfa93728af4bb8c 100644 (file)
@@ -123,7 +123,7 @@ public class CmsDeploymentImpl implements CmsDeployment {
                if (contextPath == null)
                        return; // ignore silently
                httpHandlers.remove(contextPath);
-               if (!httpServer.isDone())
+               if (!httpExpected || !httpServer.isDone())
                        return;
                // TODO use resultNow when switching to Java 21
                httpServer.join().removeContext(contextPath);