aboutsummaryrefslogtreecommitdiffstats
path: root/net/connect.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-26 17:36:53 +0200
committerKim Alvefur <zash@zash.se>2018-09-26 17:36:53 +0200
commit7a86af343f4755531e9c04adefa808c36462ae43 (patch)
tree81c62534a9d870f4462bbb306f51dea28c0509a3 /net/connect.lua
parent7f9c753df9f016cc67bb2ee67a9a4f5652d0ec0b (diff)
downloadprosody-7a86af343f4755531e9c04adefa808c36462ae43.tar.gz
prosody-7a86af343f4755531e9c04adefa808c36462ae43.zip
net.connect: Fix passing request table to new listener
This could be a return value from ondetach
Diffstat (limited to 'net/connect.lua')
-rw-r--r--net/connect.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/connect.lua b/net/connect.lua
index 8a298c5d..b812ffcd 100644
--- a/net/connect.lua
+++ b/net/connect.lua
@@ -56,7 +56,7 @@ function pending_connection_listeners.onconnect(conn)
end
pending_connections_map[conn] = nil;
p:log("debug", "Successfully connected");
- conn:setlistener(p.listeners);
+ conn:setlistener(p.listeners, p.data);
return p.listeners.onconnect(conn);
end