fix on_event for services
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 8 Aug 2016 12:53:50 +0000 (14:53 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Mon, 8 Aug 2016 12:54:09 +0000 (14:54 +0200)
Change-Id: Id90d53764016abc16db6f4d4fb68b9e16ba492fb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-svc.c

index 95617d5..e718291 100644 (file)
@@ -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 {