mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 23:54:08 +00:00
Fix non-deterministic assertion failure under load
This commit is contained in:
parent
a4be1b0b0c
commit
7248d660e3
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user