Skip to content
Permalink
Browse files
[FIXED JENKINS-24914] Don't block indefinitely every other month
  • Loading branch information
daniel-beck committed Oct 8, 2014
1 parent 07fd5fa commit adf8305f8b128c856a6de33409595fe14e01fd73
Showing with 3 additions and 2 deletions.
  1. +3 −2 core/src/main/java/jenkins/model/Jenkins.java
@@ -2949,9 +2949,10 @@ public HttpRedirect doQuietDown(
isQuietingDown = true;
}
if (block) {
if (timeout > 0) timeout += System.currentTimeMillis();
long waitUntil = timeout;
if (timeout > 0) waitUntil += System.currentTimeMillis();
while (isQuietingDown
&& (timeout <= 0 || System.currentTimeMillis() < timeout)
&& (timeout <= 0 || System.currentTimeMillis() < waitUntil)
&& !RestartListener.isAllReady()) {
Thread.sleep(1000);
}

0 comments on commit adf8305

Please sign in to comment.