projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
919eb0f
)
service: register the subscriber object before the event handler
author
Felix Fietkau
<
[email protected]
>
Thu, 5 Jun 2014 14:46:32 +0000
(16:46 +0200)
committer
Felix Fietkau
<
[email protected]
>
Thu, 5 Jun 2014 14:46:32 +0000
(16:46 +0200)
Signed-off-by: Felix Fietkau <
[email protected]
>
service/watch.c
patch
|
blob
|
history
diff --git
a/service/watch.c
b/service/watch.c
index b5f4ae3b8f7b03710e2a20650fd547fbe1ba3cf1..65e1fec9672d595d4b22e03088eeb0efb98f0ae0 100644
(file)
--- a/
service/watch.c
+++ b/
service/watch.c
@@
-117,8
+117,8
@@
watch_ubus(struct ubus_context *ctx)
{
watch_event.cb = watch_subscribe_cb;
watch_subscribe.cb = watch_notify_cb;
- if (ubus_register_event_handler(ctx, &watch_event, "ubus.object.add"))
- ERROR("failed to add ubus event handler\n");
if (ubus_register_subscriber(ctx, &watch_subscribe))
ERROR("failed to register ubus subscriber\n");
+ if (ubus_register_event_handler(ctx, &watch_event, "ubus.object.add"))
+ ERROR("failed to add ubus event handler\n");
}