aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-02 17:06:23 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-02 17:06:23 +0500
commit719111c90dd9b0c4705989cc9db752f60cf53b9b (patch)
treedb09ce1a9f7a908e91b858f4ab2cb034141d1a5e
parent5d840b3f53e023bebf635a415e18ea40d72aea25 (diff)
downloadprosody-719111c90dd9b0c4705989cc9db752f60cf53b9b.tar.gz
prosody-719111c90dd9b0c4705989cc9db752f60cf53b9b.zip
net.multiplex_listener: Call listener.onconnect(conn) when swapping listeners.
-rw-r--r--net/multiplex_listener.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/multiplex_listener.lua b/net/multiplex_listener.lua
index bf193ad8..dbd7ea13 100644
--- a/net/multiplex_listener.lua
+++ b/net/multiplex_listener.lua
@@ -31,6 +31,7 @@ function server.onincoming(conn, data)
listener = xmppclient_listener;
end
conn:setlistener(listener);
+ listener.onconnect(conn);
listener.onincoming(conn, buf);
elseif #buf > 1024 then
conn:close();