protocol: fix sign in error checks

Our errors are -errno
This commit is contained in:
Wim Taymans 2020-11-02 16:46:13 +01:00
parent b59eff4c29
commit a7d522c743
2 changed files with 3 additions and 3 deletions

View file

@ -290,7 +290,7 @@ connection_data(void *data, int fd, uint32_t mask)
SPA_FLAG_CLEAR(mask, SPA_IO_OUT); SPA_FLAG_CLEAR(mask, SPA_IO_OUT);
pw_loop_update_io(client->context->main_loop, pw_loop_update_io(client->context->main_loop,
this->source, mask); this->source, mask);
} else if (res != EAGAIN) } else if (res != -EAGAIN)
goto error; goto error;
} }
if (mask & SPA_IO_IN) { if (mask & SPA_IO_IN) {
@ -748,7 +748,7 @@ on_remote_data(void *data, int fd, uint32_t mask)
pw_loop_update_io(loop, pw_loop_update_io(loop,
impl->source, mask); impl->source, mask);
impl->flushing = false; impl->flushing = false;
} else if (res != EAGAIN) } else if (res != -EAGAIN)
goto error; goto error;
} }

View file

@ -4055,7 +4055,7 @@ on_client_data(void *data, int fd, uint32_t mask)
int mask = client->source->mask; int mask = client->source->mask;
SPA_FLAG_CLEAR(mask, SPA_IO_OUT); SPA_FLAG_CLEAR(mask, SPA_IO_OUT);
pw_loop_update_io(impl->loop, client->source, mask); pw_loop_update_io(impl->loop, client->source, mask);
} else if (res != EAGAIN) } else if (res != -EAGAIN)
goto error; goto error;
} }
if (mask & SPA_IO_IN) { if (mask & SPA_IO_IN) {