mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
protocol: fix sign in error checks
Our errors are -errno
This commit is contained in:
parent
b59eff4c29
commit
a7d522c743
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue