...
This commit is contained in:
parent
40b355e593
commit
0359bbe4be
@ -1007,7 +1007,7 @@ io_loop(void *data) {
|
|||||||
if (has_pending_wakeups) {
|
if (has_pending_wakeups) {
|
||||||
now = monotonic();
|
now = monotonic();
|
||||||
double time_delta = OPT(input_delay) - (now - last_main_loop_wakeup_at);
|
double time_delta = OPT(input_delay) - (now - last_main_loop_wakeup_at);
|
||||||
if (time_delta > 0) ret = poll(fds, self->count + EXTRA_FDS, -1);
|
if (time_delta > 0) ret = poll(fds, self->count + EXTRA_FDS, time_delta);
|
||||||
else ret = 0;
|
else ret = 0;
|
||||||
} else {
|
} else {
|
||||||
ret = poll(fds, self->count + EXTRA_FDS, -1);
|
ret = poll(fds, self->count + EXTRA_FDS, -1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user