mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[219500] Added a guard for a disposed session to avoid a RejectedExecutionException.
This commit is contained in:
parent
85c1fe0161
commit
46ad3b30d5
1 changed files with 8 additions and 6 deletions
|
@ -237,12 +237,14 @@ public class StepQueueManager extends AbstractDsfService
|
||||||
new DsfRunnable() { public void run() {
|
new DsfRunnable() { public void run() {
|
||||||
fTimedOutFutures.remove(e.getDMContext());
|
fTimedOutFutures.remove(e.getDMContext());
|
||||||
|
|
||||||
|
if (getSession().isActive()) {
|
||||||
// Issue the stepping time-out event.
|
// Issue the stepping time-out event.
|
||||||
getSession().dispatchEvent(
|
getSession().dispatchEvent(
|
||||||
new ISteppingTimedOutEvent() {
|
new ISteppingTimedOutEvent() {
|
||||||
public IExecutionDMContext getDMContext() { return e.getDMContext(); }
|
public IExecutionDMContext getDMContext() { return e.getDMContext(); }
|
||||||
},
|
},
|
||||||
getProperties());
|
getProperties());
|
||||||
|
}
|
||||||
}},
|
}},
|
||||||
STEPPING_TIMEOUT, TimeUnit.MILLISECONDS)
|
STEPPING_TIMEOUT, TimeUnit.MILLISECONDS)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue