summaryrefslogtreecommitdiffstats
path: root/src/afb-stub-ws.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb-stub-ws.c')
-rw-r--r--src/afb-stub-ws.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c
index fa7e4894..351b3320 100644
--- a/src/afb-stub-ws.c
+++ b/src/afb-stub-ws.c
@@ -1083,17 +1083,11 @@ static void server_send_description(struct afb_stub_ws *stubws, uint32_t descid,
static void server_describe_job(int signum, void *closure)
{
- struct afb_api api;
struct json_object *obj;
struct server_describe *desc = closure;
/* get the description if possible */
- obj = NULL;
- if (!signum
- && !afb_apiset_get(desc->stubws->apiset, desc->stubws->apiname, &api)
- && api.itf->describe) {
- obj = api.itf->describe(api.closure);
- }
+ obj = !signum ? afb_apiset_describe(desc->stubws->apiset, desc->stubws->apiname) : NULL;
/* send it */
server_send_description(desc->stubws, desc->descid, obj);