diff options
-rw-r--r-- | libseat/backend/seatd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c index 96b4681..97971aa 100644 --- a/libseat/backend/seatd.c +++ b/libseat/backend/seatd.c @@ -342,7 +342,7 @@ static int dispatch_and_execute(struct libseat *base, int timeout) { // caller might be waiting for the result. However, we'd also // like to read anything pending. int read = 0; - if (predispatch == 0 || timeout == 0) { + if (predispatch > 0 || timeout == 0) { read = connection_read(&backend->connection); } else { read = poll_connection(backend, timeout); |