mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
3df0fb21a0
commit
d7da581b9c
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue