mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-18 20:57:56 +00:00
Don't allow link_send() to dominate the scheduler
This commit is contained in:
parent
6b17cd580f
commit
b5c0687ff7
@ -904,7 +904,10 @@ static void link_send(struct sched_ent *alarm)
|
||||
op_free(frame);
|
||||
else if (overlay_payload_enqueue(frame))
|
||||
op_free(frame);
|
||||
|
||||
|
||||
time_ms_t allowed=gettime_ms()+5;
|
||||
if (alarm->alarm < allowed)
|
||||
alarm->alarm = allowed;
|
||||
alarm->deadline = alarm->alarm;
|
||||
schedule(alarm);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user