client-node: don't make add_listener async

It is not really async, the init is async.
This commit is contained in:
Wim Taymans 2019-03-15 20:28:42 +01:00
parent 1ab00fae6d
commit 33afa18621
5 changed files with 14 additions and 11 deletions

View file

@ -151,7 +151,7 @@ pw_spa_node_new(struct pw_core *core,
if (res < 0)
goto clean_node;
if (SPA_RESULT_IS_ASYNC(res)) {
if (flags & PW_SPA_NODE_FLAG_ASYNC) {
impl->init_pending = spa_node_sync(impl->node, res);
} else {
complete_init(impl);
@ -308,6 +308,9 @@ struct pw_node *pw_spa_node_load(struct pw_core *core,
goto init_failed;
}
if (SPA_RESULT_IS_ASYNC(res))
flags |= PW_SPA_NODE_FLAG_ASYNC;
if ((res = spa_handle_get_interface(handle, SPA_TYPE_INTERFACE_Node, &iface)) < 0) {
pw_log_error("can't get node interface %d", res);
goto interface_failed;