X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=lua%2Fubus.c;h=2903e7b1ea7142e5e8ff7f919875e04d16a859e9;hb=d23b07a9ff999275c09957cb385e10cb729abd17;hp=a48fb7dd443c09bbf2e1782c89d9b6d7e96100b1;hpb=33b2abf6310abbadc541a0e1913080e048174324;p=project%2Fubus.git diff --git a/lua/ubus.c b/lua/ubus.c index a48fb7d..2903e7b 100644 --- a/lua/ubus.c +++ b/lua/ubus.c @@ -597,10 +597,13 @@ ubus_event_handler(struct ubus_context *ctx, struct ubus_event_handler *ev, lua_getglobal(state, "__ubus_cb_event"); lua_rawgeti(state, -1, listener->r); + lua_remove(state, -2); if (lua_isfunction(state, -1)) { ubus_lua_parse_blob_array(state, blob_data(msg), blob_len(msg), true); lua_call(state, 1, 0); + } else { + lua_pop(state, 1); } }