aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.lua b/server.lua
index 0f731315..46e3730e 100644
--- a/server.lua
+++ b/server.lua
@@ -553,10 +553,10 @@ removesocket = function( tbl, socket, len ) -- this function removes sockets
end
closeall = function( )
- for _, handler in pairs( socketlist ) do
+ for sock, handler in pairs( socketlist ) do
handler.shutdown( )
handler.close( )
- socketlist[ _ ] = nil
+ socketlist[ sock ] = nil
end
writelist, readlist, socketlist = { }, { }, { }
end