summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5003c20)
Also use sched_request_timeout() instead of setting the timeout
directly.
* this period begins to avoid restarting the receiver that
* belongs to the file just completed.
*/
* this period begins to avoid restarting the receiver that
* belongs to the file just completed.
*/
- if (stat_task->server_stream_start.tv_sec != 0)
+ if (stat_task->server_stream_start.tv_sec != 0) {
sched_request_timeout_ms(100, s);
sched_request_timeout_ms(100, s);
}
if (tv_diff(now, &afi[cafn].restart_barrier, &diff) < 0) {
if (tv_diff(&s->timeout, &diff, NULL) > 0)
}
if (tv_diff(now, &afi[cafn].restart_barrier, &diff) < 0) {
if (tv_diff(&s->timeout, &diff, NULL) > 0)
+ sched_request_timeout(&diff, s);
else
sched_min_delay(s);
return -1;
else
sched_min_delay(s);
return -1;