1
0
Fork 0
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:
Pawel Piech 2011-10-05 13:59:45 -07:00
parent 09bc0ef3f0
commit bdd74fd79e

View file

@ -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));
}