diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-04-21 19:00:02 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-04-21 19:00:02 +0200 |
commit | c6046d8d5fda932fa61e3396fdbdfc1614fbe028 (patch) | |
tree | 16dc427dd2e147a593468fad0e67a01f662915ea | |
parent | f047a6ebb105106fd3b293681298a9fa86418b23 (diff) |
main: init session module first
Change-Id: If2acee2fa6469cbfb6c2d11eb1e3fd622b093155
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -550,14 +550,16 @@ static void start() } /* configure the daemon */ + afb_session_init(config->nbSessionMax, config->cntxTimeout, config->token); + if (!afb_hreq_init_cookie(config->httpdPort, config->rootapi, config->cntxTimeout)) { + ERROR("initialisation of cookies failed"); + goto error; + } main_apiset = afb_apiset_create("main", config->apiTimeout); if (!main_apiset) { ERROR("can't create main api set"); goto error; } - afb_session_init(config->nbSessionMax, config->cntxTimeout, config->token); - if (!afb_hreq_init_cookie(config->httpdPort, config->rootapi, config->cntxTimeout)) { - ERROR("initialisation of cookies failed"); goto error; } |