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:
parent
f339b83aa5
commit
6cb229669e
1 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue