1
0
Fork 0
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:
Pawel Piech 2008-02-19 21:20:04 +00:00
parent 85c1fe0161
commit 46ad3b30d5

View file

@ -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)
); );