X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=ubus.c;h=211a1ecf7fbded0d9e10fd6f770b5d69ec5a9ad1;hp=6166254a9af8cba5a2438a907c0d776f6b5987fe;hb=4bccbfa967d756b8c84a62ea4752e936d8545a73;hpb=916f95cb58604038695347ee41a430d8ca1f0556 diff --git a/ubus.c b/ubus.c index 6166254..211a1ec 100644 --- a/ubus.c +++ b/ubus.c @@ -53,9 +53,11 @@ ubus_connect_cb(struct uloop_timeout *timeout) ctx->connection_lost = ubus_disconnect_cb; ubus_init_service(ctx); ubus_init_system(ctx); + watch_ubus(ctx); DEBUG(2, "Connected to ubus, id=%08x\n", ctx->local_id); ubus_add_uloop(ctx); + procd_state_ubus_connect(); } void