summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-08-08 14:53:50 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-08-08 14:54:09 +0200
commitd74e7deb791ed0949525139c3bad46d687af6550 (patch)
treed627fb585ff6357c9eb8c5a18ea44c065457ac17
parent9b1f8506d92d34fc51763561421b393aaf040d90 (diff)
fix on_event for services
Change-Id: Id90d53764016abc16db6f4d4fb68b9e16ba492fb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-svc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-svc.c b/src/afb-svc.c
index 95617d5d..e718291e 100644
--- a/src/afb-svc.c
+++ b/src/afb-svc.c
@@ -133,6 +133,7 @@ struct afb_svc *afb_svc_create(int share_session, int (*init)(struct afb_service
}
/* initialises the listener if needed */
+ svc->on_event = on_event;
if (on_event == NULL)
svc->listener = NULL;
else {