Skip to content

Commit

Permalink
Trying to fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CurlyMoo committed Jan 13, 2020
1 parent 1e6a3fe commit 570018e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/pilight/lua_c/network/http.c
Expand Up @@ -393,7 +393,7 @@ static int plua_network_http_get(lua_State *L) {
}

if(http_get_content(http->url, plua_network_http_callback, http) != 0) {
plua_gc_unreg(http->L, http);
plua_gc_unreg(L, http);

lua_pushboolean(L, 0);

Expand All @@ -402,7 +402,7 @@ static int plua_network_http_get(lua_State *L) {
return 1;
}

plua_gc_unreg(http->L, http);
plua_gc_unreg(L, http);

lua_pushboolean(L, 1);

Expand Down Expand Up @@ -441,7 +441,7 @@ static int plua_network_http_post(lua_State *L) {
}

if(http_post_content(http->url, http->mimetype, http->data, plua_network_http_callback, http) != 0) {
plua_gc_unreg(http->L, http);
plua_gc_unreg(L, http);

lua_pushboolean(L, 0);

Expand All @@ -450,7 +450,7 @@ static int plua_network_http_post(lua_State *L) {
return 1;
}

plua_gc_unreg(http->L, http);
plua_gc_unreg(L, http);

lua_pushboolean(L, 1);

Expand Down

0 comments on commit 570018e

Please sign in to comment.