mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Remove wait on stop in BinaryRunner. It causes deadlock.
If we have issues with the runner while the job is trying to cancel, we sould be address it there. Change-Id: I2c42d654f4d08a7499c97c52fe14d76e24aa3dd6
This commit is contained in:
parent
8934f52ae6
commit
c781ba5c36
1 changed files with 1 additions and 2 deletions
|
@ -163,14 +163,13 @@ public class BinaryRunner {
|
|||
}
|
||||
|
||||
/**
|
||||
* Cancels the binary runner and waits until it is stopped.
|
||||
* Cancels the binary runner
|
||||
*/
|
||||
public void stop() {
|
||||
synchronized (runnerJob) {
|
||||
isStopped= true; // make sure job is not scheduled afterwards
|
||||
runnerJob.cancel();
|
||||
}
|
||||
waitIfRunning();
|
||||
}
|
||||
|
||||
private class Visitor implements IResourceProxyVisitor {
|
||||
|
|
Loading…
Add table
Reference in a new issue