summaryrefslogtreecommitdiffstats
path: root/src/afb-api-so-v1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb-api-so-v1.c')
-rw-r--r--src/afb-api-so-v1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afb-api-so-v1.c b/src/afb-api-so-v1.c
index 8c4ea484..5292cfe6 100644
--- a/src/afb-api-so-v1.c
+++ b/src/afb-api-so-v1.c
@@ -69,9 +69,10 @@ static void call_cb(void *closure, struct afb_xreq *xreq)
verb = search(desc, xreq->verb);
if (!verb)
- afb_xreq_fail_f(xreq, "unknown-verb", "verb %s unknown within api %s", xreq->verb, desc->binding->v1.prefix);
+ afb_xreq_fail_unknown_verb(xreq);
else
- afb_xreq_so_call(xreq, verb->session, verb->callback);
+ if (!xreq_session_check_apply(xreq, verb->session))
+ afb_xreq_call(xreq, verb->callback);
}
static int service_start_cb(void *closure, int share_session, int onneed, struct afb_apiset *apiset)