Don't allow link_send() to dominate the scheduler

This commit is contained in:
Jeremy Lakeman 2014-03-05 09:57:17 -08:00
parent 6b17cd580f
commit b5c0687ff7

View File

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