Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIX JENKINS-12994] Quiet period is blocking other jobs in queue
Queue#maintain() was returning too soon
  • Loading branch information
Vlatombe committed Mar 27, 2012
1 parent c5c5ff4 commit 394e9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/model/Queue.java
Expand Up @@ -910,12 +910,12 @@ public synchronized void maintain() {
}
}

// waitingList -> buldable/blocked
// waitingList -> buildable/blocked
while (!waitingList.isEmpty()) {
WaitingItem top = peek();

if (!top.timestamp.before(new GregorianCalendar()))
return; // finished moving all ready items from queue
break; // finished moving all ready items from queue

waitingList.remove(top);
Task p = top.task;
Expand Down

0 comments on commit 394e9d6

Please sign in to comment.