net.server_select: 'listener'->'listeners' (fixes undefined global access)
authorMatthew Wild <mwild1@gmail.com>
Tue, 2 Sep 2014 16:23:44 +0000 (17:23 +0100)
committerMatthew Wild <mwild1@gmail.com>
Tue, 2 Sep 2014 16:23:44 +0000 (17:23 +0100)
net/server_select.lua

index 2b23b4f04764e3e3ff32441291878d09f6b9f634..7ac4152314cca2068f711b3f8865fbe5371b73d3 100644 (file)
@@ -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