This patch fixes the remove notifications on subscriptions Signed-off-by: Mustafa Karaca <mustaka...@gmail.com>
--- d1/build_dir/target-mips_24kc_musl/ubus-2017-02-18-34c6e818. orig/lua/ubus.c 2017-02-20 13:32:19.000000000 +0300 +++ d2/build_dir/target-mips_24kc_musl/ubus-2017-02-18-34c6e818/lua/ubus.c 2017-08-23 22:37:07.375486938 +0300 @@ -835,8 +835,8 @@ if( idxremove ){ lua_getglobal(L, "__ubus_cb_subscribe"); - lua_pushvalue(L, idxnotify); - sub->rnotify = luaL_ref(L, -2); + lua_pushvalue(L, idxremove); + sub->rremove = luaL_ref(L, -2); lua_pop(L, 1); sub->s.remove_cb = ubus_sub_remove_handler; }
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel