diff options
Diffstat (limited to 'proxy_await.c')
-rw-r--r-- | proxy_await.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/proxy_await.c b/proxy_await.c index 582c3d5..3dfd16b 100644 --- a/proxy_await.c +++ b/proxy_await.c @@ -89,7 +89,8 @@ int mcplib_await(lua_State *L) { aw->type = type; P_DEBUG("%s: about to yield [len: %d]\n", __func__, n); - return lua_yield(L, 1); + lua_pushinteger(L, MCP_YIELD_AWAIT); + return lua_yield(L, 2); } static void mcp_queue_await_io(conn *c, lua_State *Lc, mcp_request_t *rq, int await_ref, bool await_first) { |