1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +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 // indicate completion of step
final IExecutionDMContext dmc = DMContexts.getAncestorOfType(context, IExecutionDMContext.class); final IExecutionDMContext dmc = DMContexts.getAncestorOfType(context, IExecutionDMContext.class);
if (dmc != null) { if (dmc != null) {
fController.getExecutor().execute(new DsfRunnable() { try {
public void run() { fController.getExecutor().execute(new DsfRunnable() {
fController.doneStepping(dmc, DsfSourceDisplayAdapter.this); public void run() {
}; fController.doneStepping(dmc, DsfSourceDisplayAdapter.this);
}); };
});
} catch (RejectedExecutionException e) {
// Session is shutdown
}
} }
} }
} }