summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {