The static variable `state` in `lua/uloop.c` should be clean after every callback.
Signed-off-by: Xiongfei(Alex) Guo <xfguo@credosemi.com>
lua_getglobal(state, "__uloop_cb");
lua_rawgeti(state, -1, tout->r);
+ lua_remove(state, -2);
lua_call(state, 0, 0);
}
lua_getglobal(state, "__uloop_cb");
lua_rawgeti(state, -1, proc->r);
luaL_unref(state, -2, proc->r);
+ lua_remove(state, -2);
lua_pushinteger(state, ret >> 8);
lua_call(state, 1, 0);
}