mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
module-protocol-native: Fix errno check
handle_connection_error() takes errno as argument so check for positive error codes.
This commit is contained in:
parent
c8fc79bad2
commit
15ce86aff1
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ static void *connection_ensure_size(struct pw_protocol_native_connection *conn,
|
|||
|
||||
static void handle_connection_error(struct pw_protocol_native_connection *conn, int res)
|
||||
{
|
||||
if (res == -EPIPE || res == -ECONNRESET)
|
||||
if (res == EPIPE || res == ECONNRESET)
|
||||
pw_log_info("connection %p: could not recvmsg on fd:%d: %s", conn, conn->fd, strerror(res));
|
||||
else
|
||||
pw_log_error("connection %p: could not recvmsg on fd:%d: %s", conn, conn->fd, strerror(res));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue