aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-26 15:07:25 +0200
committerKim Alvefur <zash@zash.se>2018-09-26 15:07:25 +0200
commit7f9c753df9f016cc67bb2ee67a9a4f5652d0ec0b (patch)
tree8e8dd550b63e8cf6619c18f93d2e3843daffb20d /net
parent437fd63c6ff097d6a09d162ef9b6a104d73fa723 (diff)
downloadprosody-7f9c753df9f016cc67bb2ee67a9a4f5652d0ec0b.tar.gz
prosody-7f9c753df9f016cc67bb2ee67a9a4f5652d0ec0b.zip
net.connect: Remove manual onattach callback invocation
Diffstat (limited to 'net')
-rw-r--r--net/connect.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/connect.lua b/net/connect.lua
index 02ab4cc0..8a298c5d 100644
--- a/net/connect.lua
+++ b/net/connect.lua
@@ -56,9 +56,6 @@ function pending_connection_listeners.onconnect(conn)
end
pending_connections_map[conn] = nil;
p:log("debug", "Successfully connected");
- if p.listeners.onattach then
- p.listeners.onattach(conn, p.data);
- end
conn:setlistener(p.listeners);
return p.listeners.onconnect(conn);
end