main: hopefully fix logical error in delayed rendering

We want the timeout_ms to *not* be -1 (i.e. someone has requested
delayed rendering), while we're *not* getting client output.
This commit is contained in:
Daniel Eklöf 2019-07-10 09:56:15 +02:00
parent 18c61a9a2a
commit 94fdde3da7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
main.c
View file

@ -495,7 +495,7 @@ main(int argc, char *const *argv)
break;
}
if (ret == 0 || !(timeout_ms != -1 && fds[1].revents & POLLIN)) {
if (ret == 0 || (timeout_ms != -1 && !(fds[1].revents & POLLIN))) {
/* Delayed rendering */
if (term.frame_callback == NULL)
grid_render(&term);