aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-02-09 14:24:49 +0000
committerMatthew Wild <mwild1@gmail.com>2009-02-09 14:24:49 +0000
commitd74b1cd4e2580aa24eb3091cf528a9a07ca6fa57 (patch)
treeea3342e7a7c59c00b7dc5f04b89afbc22f325d33 /net
parent88a1586f95d1cc04a48f4e6012bfa93d3c4caaa2 (diff)
downloadprosody-d74b1cd4e2580aa24eb3091cf528a9a07ca6fa57.tar.gz
prosody-d74b1cd4e2580aa24eb3091cf528a9a07ca6fa57.zip
net.server: Fix nil table index assignment
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