From 0371c8f5fde821f06948116383f0073f8b7f67ba Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 27 Sep 2012 13:59:47 +0200 Subject: [PATCH] lua: add uloop support --- lua/ubus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/ubus.c b/lua/ubus.c index c9c1108..29ba1ae 100644 --- a/lua/ubus.c +++ b/lua/ubus.c @@ -226,6 +226,7 @@ ubus_lua_connect(lua_State *L) if ((c = lua_newuserdata(L, sizeof(*c))) != NULL && (c->ctx = ubus_connect(sockpath)) != NULL) { + ubus_add_uloop(c->ctx); c->timeout = timeout; memset(&c->buf, 0, sizeof(c->buf)); luaL_getmetatable(L, METANAME); -- 2.30.2