mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
The cleanUp() call was in the wrong position. I've put it in the beginning of the method.
This commit is contained in:
1 parent
1c94716002
commit
6bb2be8225
1 file changed
+2
-1
@@ -391,7 +391,6 @@ public class WebAppMain implements ServletContextListener {
|
||||
}
|
||||
|
||||
public void contextDestroyed(ServletContextEvent event) {
|
||||
terminated = true;
|
||||
Jenkins instance = Jenkins.getInstance();
|
||||
try {
|
||||
if (instance != null) {
|
||||
@@ -400,6 +399,8 @@ public class WebAppMain implements ServletContextListener {
|
||||
} catch (Exception e) {
|
||||
LOGGER.log(Level.SEVERE, "Failed to clean up. Restart will continue.", e);
|
||||
}
|
||||
|
||||
terminated = true;
|
||||
Thread t = initThread;
|
||||
if (t != null && t.isAlive()) {
|
||||
LOGGER.log(Level.INFO, "Shutting down a Jenkins instance that was still starting up", new Throwable("reason"));
|
||||
|
||||
Reference in new issue
Block a user