net.connect: Remove manual onattach callback invocation

This commit is contained in:
Kim Alvefur 2018-09-26 15:07:25 +02:00
parent 437fd63c6f
commit 7f9c753df9

View file

@ -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