Changeset

2114:737763dc23b0

net.server_event: Call connection's onconnect, no need to pass closures around now
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Nov 2009 03:44:15 +0000
parents 2113:cbf7241a0f6a
children 2115:2d377ff72f79
files net/server_event.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Sun Nov 22 03:42:45 2009 +0000
+++ b/net/server_event.lua	Sun Nov 22 03:44:15 2009 +0000
@@ -161,7 +161,7 @@
 				self:_lock( false,  false, false )
 				--vdebug( "start listening on client socket with id:", self.id )      
 				self.eventread = addevent( base, self.conn, EV_READ, self.readcallback, cfg.READ_TIMEOUT )  -- register callback
-				onconnect( self )
+				self:onconnect()
 				self.eventsession = nil
 				return -1
 			end