[OpenWrt-Devel] [PATCH] ubus lua module: fix for "remove" notification for subscriptions

mustafa karaca mustakarac at gmail.com
Wed Aug 23 16:18:57 EDT 2017


This patch fixes the remove notifications on subscriptions

Signed-off-by: Mustafa Karaca <mustakarac at 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;
  }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20170823/0ad6d136/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list