connection: improve some return values

This commit is contained in:
Wim Taymans 2018-04-19 20:03:52 +02:00
parent ae905530ba
commit 1f73143d55
3 changed files with 13 additions and 12 deletions

View file

@ -578,7 +578,7 @@ static void do_flush_event(void *data, uint64_t count)
struct client *impl = data;
impl->flush_signaled = false;
if (impl->connection)
if (!pw_protocol_native_connection_flush(impl->connection))
if (pw_protocol_native_connection_flush(impl->connection) < 0)
impl->this.disconnect(&impl->this);
}