# HG changeset patch # User Matthew Wild # Date 1234189489 0 # Node ID d4b6714fc82979e87b6523d4b1c9d4fcce9f5c66 # Parent 4885c6e101b4a05a99269636f5834a9a1fe28eb5 net.server: Fix nil table index assignment diff -r 4885c6e101b4 -r d4b6714fc829 net/server.lua --- a/net/server.lua Mon Feb 09 13:48:11 2009 +0000 +++ b/net/server.lua Mon Feb 09 14:24:49 2009 +0000 @@ -362,7 +362,7 @@ _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