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:
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
|
// 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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue