diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c index 83f91eea..37a09512 100644 --- a/client/dbus-proxy.c +++ b/client/dbus-proxy.c @@ -572,10 +572,10 @@ static void proxy_interface_create(const char *path, proxy->path = l_strdup(path); proxy->type = interface_type; + l_queue_push_tail(proxy_interfaces, proxy); + if (interface_type->ops && interface_type->ops->create) proxy->data = interface_type->ops->create(); - - l_queue_push_tail(proxy_interfaces, proxy); } }