Changeset

3137:463d51ee9a2b

net.multiplex_listener: Call listener.onconnect(conn) when swapping listeners.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 02 Jun 2010 17:06:23 +0500
parents 3136:9630cb97cd3e
children 3138:d6151c9a6f7e
files net/multiplex_listener.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/multiplex_listener.lua	Wed Jun 02 12:32:24 2010 +0100
+++ b/net/multiplex_listener.lua	Wed Jun 02 17:06:23 2010 +0500
@@ -31,6 +31,7 @@
 			listener = xmppclient_listener;
 		end
 		conn:setlistener(listener);
+		listener.onconnect(conn);
 		listener.onincoming(conn, buf);
 	elseif #buf > 1024 then
 		conn:close();