aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua
index 773a4232..a5c8e24c 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -362,7 +362,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
_closelist[ handler ] = "send buffer exceeded" -- cannot close the client at the moment, have to wait to the end of the cycle
handler.write = idfalse -- dont write anymore
return false
- elseif not _sendlist[ socket ] then
+ elseif socket and not _sendlist[ socket ] then
_sendlistlen = _sendlistlen + 1
_sendlist[ _sendlistlen ] = socket
_sendlist[ socket ] = _sendlistlen