mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -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);
|
||||
pw_loop_update_io(client->context->main_loop,
|
||||
this->source, mask);
|
||||
} else if (res != EAGAIN)
|
||||
} else if (res != -EAGAIN)
|
||||
goto error;
|
||||
}
|
||||
if (mask & SPA_IO_IN) {
|
||||
|
|
@ -748,7 +748,7 @@ on_remote_data(void *data, int fd, uint32_t mask)
|
|||
pw_loop_update_io(loop,
|
||||
impl->source, mask);
|
||||
impl->flushing = false;
|
||||
} else if (res != EAGAIN)
|
||||
} else if (res != -EAGAIN)
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue