jack: return error when disconnected

When we are disconnected from the server (EPIPE), don't try to wait for
the result of a sync operation but return the error.

Fixes #2606
This commit is contained in:
Wim Taymans 2022-08-11 11:04:50 +02:00
parent 3df0fb21a0
commit d7da581b9c

View file

@ -874,6 +874,8 @@ static int do_sync(struct client *client)
pw_log_warn("sync requested from callback");
return 0;
}
if (client->last_res == -EPIPE)
return -EPIPE;
client->last_res = 0;
client->pending_sync = pw_proxy_sync((struct pw_proxy*)client->core, client->pending_sync);