mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
protocol-native: set error when add_event fails
This commit is contained in:
parent
9cb234dda9
commit
51e0720113
1 changed files with 3 additions and 1 deletions
|
|
@ -1430,8 +1430,10 @@ add_server(struct pw_protocol *protocol,
|
||||||
if ((res = add_socket(protocol, s)) < 0)
|
if ((res = add_socket(protocol, s)) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if ((s->resume = pw_loop_add_event(s->loop, do_resume, s)) == NULL)
|
if ((s->resume = pw_loop_add_event(s->loop, do_resume, s)) == NULL) {
|
||||||
|
res = -errno;
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
pw_log_info("%p: Listening on '%s'", protocol, name);
|
pw_log_info("%p: Listening on '%s'", protocol, name);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue