aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-22 03:44:15 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-22 03:44:15 +0000
commit7ae00da04478cee9fe34bde8cc016292ce2a503d (patch)
tree1be31ae2cb9740e08d2118f4dd2b5b32ffe55432
parent08ea9601ce7890df559dd8a6fd2cacce432addda (diff)
downloadprosody-7ae00da04478cee9fe34bde8cc016292ce2a503d.tar.gz
prosody-7ae00da04478cee9fe34bde8cc016292ce2a503d.zip
net.server_event: Call connection's onconnect, no need to pass closures around now
-rw-r--r--net/server_event.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 23a8ff86..879d9801 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -161,7 +161,7 @@ do
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