aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 2d9e0d86..e317d7dc 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -249,7 +249,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
local ssl
local dispatch = listeners.onincoming
- local status = listeners.status
+ local status = listeners.onstatus
local disconnect = listeners.ondisconnect
local bufferqueue = { } -- buffer array
@@ -282,6 +282,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
handler.setlistener = function( self, listeners )
dispatch = listeners.onincoming
disconnect = listeners.ondisconnect
+ status = listeners.onstatus
end
handler.getstats = function( )
return readtraffic, sendtraffic