seatd: We shouldn't poll if predispatch > 0
This condition was accidentally botched as part of
5923e0edc9
This commit is contained in:
parent
6444da6093
commit
d03e9d1c35
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue