aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp.c')
-rw-r--r--src/tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tcp.c b/src/tcp.c
index 746c4b6..618f4ce 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -233,7 +233,8 @@ static int meth_close(lua_State *L)
233{ 233{
234 p_tcp tcp = (p_tcp) aux_checkgroup(L, "tcp{any}", 1); 234 p_tcp tcp = (p_tcp) aux_checkgroup(L, "tcp{any}", 1);
235 sock_destroy(&tcp->sock); 235 sock_destroy(&tcp->sock);
236 return 0; 236 lua_pushnumber(L, 1);
237 return 1;
237} 238}
238 239
239/*-------------------------------------------------------------------------*\ 240/*-------------------------------------------------------------------------*\