aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-xreq.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-20 10:02:49 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-20 10:02:49 +0200
commit3634c468ec7de94f6911c532a606625418fa5133 (patch)
tree1fc9a6c22cd6b5367cc63473d286355ca2d4c85b /src/afb-xreq.c
parentaf552129e778954878a3a3b4e0138fdb2c1f2602 (diff)
Add default api to apiset
Also improve interface of apiset. Change-Id: I3c256ce1ecb089f0b518e45f0dee139c04943f2e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-xreq.c')
-rw-r--r--src/afb-xreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-xreq.c b/src/afb-xreq.c
index b40f0304..48503291 100644
--- a/src/afb-xreq.c
+++ b/src/afb-xreq.c
@@ -529,7 +529,7 @@ void afb_xreq_process(struct afb_xreq *xreq, struct afb_apiset *apiset)
xreq->apiset = apiset;
afb_xreq_addref(xreq);
- if (jobs_queue(NULL, afb_apiset_get_timeout(apiset), process_async, xreq) < 0) {
+ if (jobs_queue(NULL, afb_apiset_timeout_get(apiset), process_async, xreq) < 0) {
/* TODO: allows or not to proccess it directly as when no threading? (see above) */
ERROR("can't process job with threads: %m");
afb_xreq_fail_f(xreq, "cancelled", "not able to create a job for the task");