This commit is contained in:
Kovid Goyal 2018-10-23 11:08:13 +05:30
parent 40b355e593
commit 0359bbe4be
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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