diff --git a/core/src/main/java/hudson/WebAppMain.java b/core/src/main/java/hudson/WebAppMain.java index 5fe796eb9b..acca2aa7a4 100644 --- a/core/src/main/java/hudson/WebAppMain.java +++ b/core/src/main/java/hudson/WebAppMain.java @@ -225,6 +225,11 @@ public class WebAppMain implements ServletContextListener { boolean success = false; try { Jenkins instance = new Hudson(_home, context); + + // one last check to make sure everything is in order before we go live + if (Thread.interrupted()) + throw new InterruptedException(); + context.setAttribute(APP, instance); BootFailure.getBootFailureFile(_home).delete(); diff --git a/test/src/test/java/hudson/util/BootFailureTest.java b/test/src/test/java/hudson/util/BootFailureTest.java index 918c47632e..aeaf88e7d0 100644 --- a/test/src/test/java/hudson/util/BootFailureTest.java +++ b/test/src/test/java/hudson/util/BootFailureTest.java @@ -154,8 +154,6 @@ public class BootFailureTest { @Override public void onLoaded() { wa.contextDestroyed(null); - // make the Jenkins. thread abort - throw new Error(); } }