aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-api-so-v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb-api-so-v2.c')
-rw-r--r--src/afb-api-so-v2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afb-api-so-v2.c b/src/afb-api-so-v2.c
index 2d939fbc..6038d964 100644
--- a/src/afb-api-so-v2.c
+++ b/src/afb-api-so-v2.c
@@ -67,9 +67,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->api);
+ 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)