mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +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
|
||||
protected void handleSuccess() {
|
||||
fTimedOutFlags.put(execCtx, Boolean.FALSE);
|
||||
// We shouldn't have a stepping timeout running unless
|
||||
// running/stopped events are out of order.
|
||||
assert !fTimedOutFutures.containsKey(execCtx);
|
||||
ScheduledFuture<?> currentTimeOutFuture = fTimedOutFutures.get(execCtx);
|
||||
if (currentTimeOutFuture != null) {
|
||||
currentTimeOutFuture.cancel(false);
|
||||
}
|
||||
fTimedOutFutures.put(execCtx, getExecutor().schedule(new TimeOutRunnable(execCtx), fStepTimeout, TimeUnit.MILLISECONDS));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue