mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[231687] - [concurrency][view model] RequestMoniotr.setStatus(CANCEL) being called even though request is not canceleld.
This commit is contained in:
parent
25f8027f2c
commit
9400014991
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ public class RequestMonitor {
|
|||
}
|
||||
}
|
||||
|
||||
// Call the listeners outsize of a synchronized section to reduce the
|
||||
// Call the listeners outside of a synchronized section to reduce the
|
||||
// risk of deadlocks.
|
||||
if (listeners != null) {
|
||||
for (Object listener : listeners) {
|
||||
|
@ -188,7 +188,7 @@ public class RequestMonitor {
|
|||
* of the request monitor.
|
||||
*/
|
||||
public synchronized boolean isCanceled() {
|
||||
return fCanceled;
|
||||
return fCanceled || (fParentRequestMonitor != null && fParentRequestMonitor.isCanceled());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue