aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-09-02 17:23:44 +0100
committerMatthew Wild <mwild1@gmail.com>2014-09-02 17:23:44 +0100
commit3d6dafb89a05a6aad4d102266172e377d9491360 (patch)
tree379f02441feaf82e1d573d9c55bd7781d1ecbfe0
parent58edf57b1fd5e1dc2df3bcb79fd66d9c35738352 (diff)
downloadprosody-3d6dafb89a05a6aad4d102266172e377d9491360.tar.gz
prosody-3d6dafb89a05a6aad4d102266172e377d9491360.zip
net.server_select: 'listener'->'listeners' (fixes undefined global access)
-rw-r--r--net/server_select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 2b23b4f0..7ac41523 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -284,7 +284,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
local status = listeners.onstatus
local disconnect = listeners.ondisconnect
local drain = listeners.ondrain
- local detach = listener.ondetach
+ local detach = listeners.ondetach
local bufferqueue = { } -- buffer array
local bufferqueuelen = 0 -- end of buffer array