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

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