jack: on do shutdown on EPIPE

There are core errors that should not trigger a shutdown, like invalid
or destroyed proxy replies. Only do shutdown when we get EPIPE, which is
when the server is stopped.

See #3070
This commit is contained in:
Wim Taymans 2023-04-21 16:28:01 +02:00
parent 8cfa5ccd79
commit 84a6f38ea6

View file

@ -850,7 +850,7 @@ static void on_error(void *data, uint32_t id, int seq, int res, const char *mess
if (id == PW_ID_CORE) {
client->last_res = res;
if (!client->destroyed)
if (res == -EPIPE && !client->destroyed)
do_callback(client, shutdown_callback, client->shutdown_arg);
}
pw_thread_loop_signal(client->context.loop, false);