Skip to content

Commit

Permalink
[FIXED JENKINS-21932] Call Item#cancel when a task in a queue is canc…
Browse files Browse the repository at this point in the history
…elled.
  • Loading branch information
ikedam committed Mar 15, 2014
1 parent 5c36722 commit 0c3d670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/Queue.java
Expand Up @@ -646,7 +646,7 @@ public synchronized boolean cancel(Task p) {

public synchronized boolean cancel(Item item) {
LOGGER.log(Level.FINE, "Cancelling {0} item#{1}", new Object[] {item.task, item.id});
boolean r = item.leave(this);
boolean r = item.cancel(this);

LeftItem li = new LeftItem(item);
li.enter(this);
Expand Down

0 comments on commit 0c3d670

Please sign in to comment.