jack: exit do_sync when in error

When we are already in error, return the error right away.
This commit is contained in:
Wim Taymans 2022-02-03 12:01:30 +01:00
parent 7506d12b07
commit 3a5c2ec623

View file

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