Diff

net/multiplex_listener.lua @ 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
parent 2351:f8d002090cea
child 3138:d6151c9a6f7e
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();