From 2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sat, 22 Jan 2005 22:38:43 +0000 Subject: Stupid bug. --- src/tcp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/tcp.c b/src/tcp.c index 618f4ce..0b3706b 100644 --- a/src/tcp.c +++ b/src/tcp.c @@ -91,8 +91,6 @@ int tcp_open(lua_State *L) aux_add2group(L, "tcp{master}", "tcp{any}"); aux_add2group(L, "tcp{client}", "tcp{any}"); aux_add2group(L, "tcp{server}", "tcp{any}"); - aux_add2group(L, "tcp{client}", "tcp{client,server}"); - aux_add2group(L, "tcp{server}", "tcp{client,server}"); /* define library functions */ luaL_openlib(L, NULL, func, 0); return 0; @@ -261,7 +259,7 @@ static int meth_listen(lua_State *L) \*-------------------------------------------------------------------------*/ static int meth_shutdown(lua_State *L) { - p_tcp tcp = (p_tcp) aux_checkgroup(L, "tcp{client}", 1); + p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{client}", 1); const char *how = luaL_optstring(L, 2, "both"); switch (how[0]) { case 'b': -- cgit v1.2.3-55-g6feb