1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-27 16:39:29 +00:00

Close socket on GC

This commit is contained in:
Reuh 2015-10-25 18:56:39 +01:00
parent e6e99f59c4
commit 4acd13de9b

View file

@ -372,6 +372,7 @@ static const struct luaL_Reg socket_methods[] = {
{"accept", socket_accept },
{"bind", socket_bind },
{"close", socket_close },
{"__gc", socket_close },
{"connect", socket_connect },
{"listen", socket_listen },
{"receive", socket_receive },