summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-02-21 19:22:49 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-02-21 19:22:49 +0100
commita8c1c8889910ae3b3439346dd1a9dfbd13c8f31b (patch)
tree62268203c3a1dd5cb5b5abb3080ff8ffe813874c
parent69affc2edb055f6cd65fa1d55689272c28446d63 (diff)
Fix issue in initialisation of api by sessions
Change-Id: I72639196ce7462c34a2037cc825cf819add4a2fc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 774a5f0e..3fb7fc1b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -374,13 +374,14 @@ int main(int argc, char *argv[])
exit(1);
}
- afb_session_init(config->nbSessionMax, config->cntxTimeout, config->token, afb_apis_count());
-
afb_api_so_set_timeout(config->apiTimeout);
start_list(config->dbus_clients, afb_api_dbus_add_client, "the afb-dbus client");
start_list(config->ws_clients, afb_api_ws_add_client, "the afb-websocket client");
start_list(config->ldpaths, afb_api_so_add_pathset, "the binding path set");
start_list(config->so_bindings, afb_api_so_add_binding, "the binding");
+
+ afb_session_init(config->nbSessionMax, config->cntxTimeout, config->token, afb_apis_count());
+
start_list(config->dbus_servers, afb_api_dbus_add_server, "the afb-dbus service");
start_list(config->ws_servers, afb_api_ws_add_server, "the afb-websocket service");