mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 13:02:19 +00:00
Merge pull request #1472 from jbaranov/JENKINS-25514
[JENKINS-25514] Fixed lock case in FutureImpl
This commit is contained in:
commit
5bfaca449c
2 files changed
+38
No files matched your search
@@ -84,6 +84,14 @@ public final class FutureImpl extends AsyncFutureImpl<Executable> implements Que
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void setAsCancelled() {
|
||||
super.setAsCancelled();
|
||||
if (!start.isDone()) {
|
||||
start.setAsCancelled();
|
||||
}
|
||||
}
|
||||
|
||||
synchronized void addExecutor(@Nonnull Executor executor) {
|
||||
this.executors.add(executor);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user