# HG changeset patch # User Kim Alvefur # Date 1537967245 -7200 # Node ID 0f395d82b4ea7ab24489cc3905fd79c589bda246 # Parent 58fe099043ed46cbe8809b48919c61b71ad2ee91 net.connect: Remove manual onattach callback invocation diff -r 58fe099043ed -r 0f395d82b4ea net/connect.lua --- a/net/connect.lua Wed Sep 26 14:25:59 2018 +0200 +++ b/net/connect.lua Wed Sep 26 15:07:25 2018 +0200 @@ -56,9 +56,6 @@ 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