mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Bug 359783 - (Avoid assertion error in case of inconsistent model
events)
This commit is contained in:
parent
09bc0ef3f0
commit
bdd74fd79e
1 changed files with 4 additions and 3 deletions
|
@ -432,9 +432,10 @@ public final class SteppingController {
|
||||||
@Override
|
@Override
|
||||||
protected void handleSuccess() {
|
protected void handleSuccess() {
|
||||||
fTimedOutFlags.put(execCtx, Boolean.FALSE);
|
fTimedOutFlags.put(execCtx, Boolean.FALSE);
|
||||||
// We shouldn't have a stepping timeout running unless
|
ScheduledFuture<?> currentTimeOutFuture = fTimedOutFutures.get(execCtx);
|
||||||
// running/stopped events are out of order.
|
if (currentTimeOutFuture != null) {
|
||||||
assert !fTimedOutFutures.containsKey(execCtx);
|
currentTimeOutFuture.cancel(false);
|
||||||
|
}
|
||||||
fTimedOutFutures.put(execCtx, getExecutor().schedule(new TimeOutRunnable(execCtx), fStepTimeout, TimeUnit.MILLISECONDS));
|
fTimedOutFutures.put(execCtx, getExecutor().schedule(new TimeOutRunnable(execCtx), fStepTimeout, TimeUnit.MILLISECONDS));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue