Browse Source

[Minor] Fix coroutine based error handling in lua http

tags/1.9.1
Vsevolod Stakhov 5 years ago
parent
commit
7b57f65917
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/lua/lua_http.c

+ 4
- 0
src/lua/lua_http.c View File

@@ -937,6 +937,10 @@ lua_http_request (lua_State *L)
cbd->auth = auth;
cbd->task = task;

if (cbd->cbref == -1) {
cbd->thread = lua_thread_pool_get_running_entry (cfg->lua_thread_pool);
}

REF_INIT_RETAIN (cbd, lua_http_cbd_dtor);

if (task) {

Loading…
Cancel
Save