diff --git a/mongoose.c b/mongoose.c index 993152cf..3c7addd8 100644 --- a/mongoose.c +++ b/mongoose.c @@ -5377,7 +5377,7 @@ static int lsp_sock_send(lua_State *L) { } sent += n; } - lua_pushnumber(L, n); + lua_pushnumber(L, sent); } else { return luaL_error(L, "invalid :close() call"); }