1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00

[292488] Guard against RejectedExecutionException

This commit is contained in:
Marc Khouzam 2009-10-18 01:11:03 +00:00
parent f339b83aa5
commit 6cb229669e

View file

@ -740,11 +740,15 @@ public class DsfSourceDisplayAdapter implements ISourceDisplay, ISteppingControl
// indicate completion of step
final IExecutionDMContext dmc = DMContexts.getAncestorOfType(context, IExecutionDMContext.class);
if (dmc != null) {
fController.getExecutor().execute(new DsfRunnable() {
public void run() {
fController.doneStepping(dmc, DsfSourceDisplayAdapter.this);
};
});
try {
fController.getExecutor().execute(new DsfRunnable() {
public void run() {
fController.doneStepping(dmc, DsfSourceDisplayAdapter.this);
};
});
} catch (RejectedExecutionException e) {
// Session is shutdown
}
}
}
}