Changeset

2117:ce42307f0938

net.server_event: Use correct listener callbacks
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Nov 2009 03:51:31 +0000
parents 2116:719f95428522
children 2118:2e2e1b46cfe2
files net/server_event.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Sun Nov 22 03:49:47 2009 +0000
+++ b/net/server_event.lua	Sun Nov 22 03:51:31 2009 +0000
@@ -212,9 +212,9 @@
 								self.receive = self.conn.receive
 								local onsomething
 								if "onconnect" == arg then  -- trigger listener
-									onsomething = self.listener.onconnect
+									onsomething = self.onconnect
 								else
-									onsomething = self.listener.onsslconnection
+									onsomething = self.onsslconnection
 								end
 								self:_start_session( onsomething )
 								debug( "ssl handshake done" )