Fix non-deterministic assertion failure under load

This commit is contained in:
Andrew Bettison 2014-11-12 20:06:34 +10:30
parent a4be1b0b0c
commit 7248d660e3

View File

@ -795,8 +795,10 @@ static void overlay_interface_poll(struct sched_ent *alarm)
unschedule(alarm);
if (alarm->alarm!=-1 && interface->state==INTERFACE_STATE_UP) {
if (alarm->alarm < now)
if (alarm->alarm < now) {
alarm->alarm = now;
alarm->deadline = alarm->alarm + interface->destination->tick_ms / 2;
}
schedule(alarm);
}
}