Diff

net/server_select.lua @ 2559:a90a00ebae25

net.server_select: listener.status -> listener.onstatus for consistency
author Matthew Wild <mwild1@gmail.com>
date Sun, 31 Jan 2010 19:56:22 +0000
parent 2549:55a50e75c0c0
child 2581:1b9f424e695e
line wrap: on
line diff
--- a/net/server_select.lua	Sun Jan 31 19:54:56 2010 +0000
+++ b/net/server_select.lua	Sun Jan 31 19:56:22 2010 +0000
@@ -249,7 +249,7 @@
     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 @@
     handler.setlistener = function( self, listeners )
         dispatch = listeners.onincoming
         disconnect = listeners.ondisconnect
+        status = listeners.onstatus
     end
     handler.getstats = function( )
         return readtraffic, sendtraffic