aboutsummaryrefslogtreecommitdiff
path: root/libseat/backend
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2021-08-06 01:09:57 +0200
committerKenny Levinsen <kl@kl.wtf>2021-08-06 01:15:55 +0200
commitd03e9d1c35b491851c7097dd7b42faa02c9ff96f (patch)
tree5eb1462c53f8b3b7489b10edcc792bab87377547 /libseat/backend
parent6444da60930fbe92b8c7e868372c90887853e60b (diff)
seatd: We shouldn't poll if predispatch > 0
This condition was accidentally botched as part of 5923e0edc9bb157cf6398b63d51cc3c0aaf06001
Diffstat (limited to 'libseat/backend')
-rw-r--r--libseat/backend/seatd.c2
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);